This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
socket change in 1.7.0-3
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 17 Apr 2008 17:06:19 +0200
- Subject: socket change in 1.7.0-3
- Reply-to: cygwin-developers at cygwin dot com
Hi,
I made a change to the 1.7 version which I'm rather unsure about.
Since 2001, when closing a socket, the close() function would switch to
lingering up to 240 secs on a socket. This isn't quite correct (and
never was), but it was the only simple way to avoid data loss in some
cases on closing a socket. A description including a testcase of the
original problem can be found in
http://cygwin.com/ml/cygwin/2001-07/msg00758.html
Unfortunately there's no hint if that occured on 9x or NT or both.
Anyway, now that the socket handling had been changed a lot in 1.7, and
now that we can exclude 9x from the picture, I tested the original
scenario again, with the linger code disabled. I was not able to
reproduce the original problem, neither on NT4, nor on XP or 2K8, so I
disabled the linger code in CVS now.
I just uploaded a 1.7.0-3 which contains that patch to the release-2
area which you can fetch with setup-1.7.exe. If you encounter strange
and even maybe reproducible "Connection reset by peer" problems, which
you never had before, it might be due to this change.
So I'd like to ask you to keep an eye on that.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat