This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: socket not closed in a threaded server


>   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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]