[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Issue #2580 revisited: Windows unclean TCP close [SEVERE]

From: Paul Charlton <techguru_at_byiq.com>
Date: Thu, 22 Oct 2009 07:46:18 -0700

Peter,
It's not so much a bug but a *permitted* performance optimization for TCP
... the behavior keeps all in-between router's tables "hot" unless the
server side chooses to force-close its side of the TCP connection. Think of
a modern "secure" browser which has a relatively long duration session with
a server consisting of multiple individual TCP sessions whose lifetimes
don't necessarily overlap, some of which are originating from child
processes of the browser for security reasons. The half-duplex RST allows
the server to determine when the overall set of TCP sessions is done,
without triggering a router table flush which a FIN packet would allow.

The OSI layers do specifically allow for out-of-band control flow, unrelated
to read/write buffering status.

Best regards,
Paul

> -----Original Message-----
> From: Peter Samuelson [mailto:peter_at_p12n.org]
> Sent: Thursday, October 22, 2009 6:49 AM
> To: dev_at_subversion.tigris.org
> Cc: Bob Denny
> Subject: Re: Issue #2580 revisited: Windows unclean TCP close [SEVERE]
>
> [Peter Samuelson]
> > That is to say, when the client is killed, shouldn't the OS be
> > responsible for immediately closing the TCP session? Are you saying
> > your Windows kernel (I don't remember if you mentioned which version
> > of Windows you have) does _not_ do this?
>
> I can confirm that Windows Server 2008 has this bug. Using 'telnet',
> the Windows Task Manager thingy, and tcpdump on the server end, it
> seems that when you kill the client app, the OS makes _no_ effort to
> close the TCP connection. I tested with Linux (kernel 2.6.30, but I
> doubt it matters) and 'kill -9', and the kernel sends a FIN packet, and
> ACKs the FIN it gets back from the server, exactly as you'd expect.
>
> We still have no idea what Windows kernel Bob Denny is running, but
> presumably it has the same bug as Windows Server 2008.
> --
> Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageI
> d=2410225

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2410251
Received on 2009-10-22 16:46:39 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.