X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: Sylvain Delhomme To: cygwin AT cygwin DOT com Subject: Re: socket not closed in a threaded server Date: Thu, 25 Sep 2008 16:27:30 +0200 User-Agent: KMail/1.9.9 References: <200809251022 DOT 40547 DOT s DOT delhomme AT attitude-studio DOT com> <200809251456 DOT 58483 DOT s DOT delhomme AT attitude-studio DOT com> <022601c91f13$5928b710$9601a8c0 AT CAM DOT ARTIMI DOT COM> In-Reply-To: <022601c91f13$5928b710$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809251627.30708.s.delhomme@attitude-studio.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 > Hmm, odd, but it's a well known phenomenon. Here's an example showing > solely the use of cmd.exe and iexplore.exe; Cygwin not involved at all > except for the diff command at the end. > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\dk>netstat -ano > before.txt > > C:\Documents and Settings\dk>"\Program Files\Internet > Explorer\iexplore.exe" > > C:\Documents and Settings\dk>netstat -ano > after.txt > > C:\Documents and Settings\dk>diff -pu before.txt after.txt > --- before.txt 2008-09-25 14:28:39.829644300 +0100 > +++ after.txt 2008-09-25 14:28:50.955000300 +0100 > @@ -27,6 +27,7 @@ Active Connections > UDP 127.0.0.1:1025 *:* 600 > UDP 127.0.0.1:1028 *:* > 1108 UDP 127.0.0.1:1056 *:* > 1052 + UDP 127.0.0.1:2301 *:* > 2388 UDP 127.0.0.1:2584 *:* > 1580 UDP 192.168.1.150:123 *:* > 1580 UDP 192.168.1.150:137 *:* 4 > > C:\Documents and Settings\dk> > > > As you see, even when not showing a page (launching iexplore.exe = > about:blank on my machine), it has an open UDP socket. > > Sorry, I don't have a source right now; I'll keep looking. I'm writing > off the top of my head, and I just remembered that possibly it's not even a > loopback connection, it may just be some artifact of windows netstat. I'll > post again if I can find a reference. Thanks for the explanation. I am going to test my winsock test program again. > > >> It's > >> used for some kind of internal loopbacky rpc-ish thingy and you can > >> ignore it. > > > > Could you provide me more info about this because it can be quite > > annoying in a real application ? > > What kind of "annoying"? It does no harm and requires no action on your > part TTBOMK. Nevermind, i did not test enough to see that one connection did no left one open udp socket. In my testcase there are no more than 4 udp socket left open. So i guess there is no problem... Thanks, Sylvain -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/