delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <200809251022 DOT 40547 DOT s DOT delhomme AT attitude-studio DOT com> <01f501c91ef0$ccb7c630$9601a8c0 AT CAM DOT ARTIMI DOT COM> <200809251456 DOT 58483 DOT s DOT delhomme AT attitude-studio DOT com> |
Subject: | RE: socket not closed in a threaded server |
Date: | Thu, 25 Sep 2008 14:33:47 +0100 |
Message-ID: | <022601c91f13$5928b710$9601a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <200809251456.58483.s.delhomme@attitude-studio.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Sylvain Delhomme wrote on 25 September 2008 13:57: >> The "associated udp" socket is an internal thing managed by winsock; it's >> standard OS behaviour and happens to native win32 programs as well. > > I've just ported my small app to Winsock and I did not see this. 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. >> 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. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |