This is the mail archive of the
mailing list for the Cygwin project.
Re: SSH -R problem
On Tue, Apr 30, 2002 at 10:12:08AM -0400, Pierre A. Humblet wrote:
> Corinna Vinschen wrote:
> > That makes sense... but doesn't that again break something else?
> What it might break is the case for which linger was added in the first
> place, i.e. processes terminating and Windows flushing their outgoing
> packet queue (in the case of slow connections), as opposed to Unix,
> which maintains the queue for a while after process termination.
> Short of something like this we are between a rock and a hard place.
> I would think that applications that go to the trouble of setting the
> socket to non-blocking care more about not blocking than about potentially
> dropping packets at the end of their life.
The really ugly situation is that even a non-blocking connection
oriented socket (tcp) is expected to behave reliable. That means
it shouldn't drop packets near the end of it's life time unless
it's absolutely necessary (e. g. a defined connection timeout).
Did I say that I hate Winsock?
I'd propose to try it first as I said in my previous mail:
set to blocking
set linger to 2MSL
The nice thing is that nobody holds us from experimenting with that.
If we find that it more hurts than helps we could do a hard close
for nonblocking sockets as you proposed.
Would that be ok with you?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:email@example.com
Red Hat, Inc.