Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <017301c23d6f$0033bc90$6132bc3e@BABEL> From: "Conrad Scott" To: References: <1028578338 DOT 7433 DOT ezmlm AT cygwin DOT com> <200208060544 DOT 29738 DOT pullmoll AT stop1984 DOT com> <20020806095349 DOT N3921 AT cygbert DOT vinschen DOT de> <200208061818 DOT 30200 DOT pullmoll AT stop1984 DOT com> Subject: Re: _exit() missing WSACleanup() call? Date: Tue, 6 Aug 2002 18:30:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 "Juergen Buchmueller" wrote: > After running it for 2 or so minutes on Win98SE the main() can no longer > connect to the listening process and strerror() says 'No buffer space > available'. Run it with './testcase log' and wait until it prints to stderr. > > This same code ran continuously for a long time on FreeBSD, leaving a whole > lot of sockets in the TIME_WAIT state for some time, but without obvious > problems. Juergen, This particular problem is a known issue with cygwin on (at least) win98se (nb. it works fine on my win2k box). See http://cygwin.com/ml/cygwin-developers/2002-07/msg00167.html (and followups) for some discussion. I'm sort of thinking about looking at it RSN, but I keep letting myself get distracted :-) // Conrad p.s. In your makefile, try something more like the following to link: gcc -o testcase testcase.o -lwsock32 On my setup, for example, libwsock32.a is not in the default location (and also my TERM is not "cygwin": it's "xterm"), i.e. YMMV. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/