[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: Greg Hudson <ghudson_at_mit.edu>
Date: Wed, 21 Oct 2009 23:34:18 -0400

On Wed, 2009-10-21 at 21:04 -0400, Joseph Galbraith wrote:
> > And yet terminating the TCP connection does not have the same effect on
> > the server process? That is to say, when the client is killed,
> > shouldn't the OS be responsible for immediately closing the TCP
> > session?

> The problem is that the TCP stack may be unable to detect
> a connection drop (on either the client or the server) unless
> the application tries to send some data. (This is independent
> of the OS; I believe it is an artifact of the way IP works.)

No, that's not accurate. On Unix-like systems, if you kill the client
process, however mercilessly, the kernel will close its TCP connections
and send FIN packets to the server (retransmitting if necessary).

Like Peter, I would expect Windows to do the same--but like Peter, I
don't really know for sure.

Received on 2009-10-22 05:34:42 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.