This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: SSH -R problem
Corinna Vinschen wrote:
> I'd propose to try it first as I said in my previous mail:
Corinna,
did you see my e-mails of last two evenings?
- the blocking is a Win98 problem, the linger helps only for NT
- for NT, linger is (probably) not the "real" solution.
Although what you propose is better than nothing, I would not do
anything until we really understand what's going on.
Here is a summary of the recently characterized Windows TCP bugs
and of their proposed solutions. I was going to send it this evening,
with url's to the mails describing the problems and the proposed fixes,
but here it is.
Win98/ME
1) CLOSE_WAIT / WSAENOBUFS
Application level fix: fcntl("close on fork")
Cygwin level fix: Corinna's socket/pid bookkeeping
2) ssh -R / persisting listen sockets
Application level fix: make socket blocking before close
Cygwin level fix: make socket blocking before close
3) Unexpected ssh exit
Application level fix: fcntl("close on fork")
Cygwin level fix: (???) do not duplicate "listen" sockets after
an accept() has succeeded
4) Jonathan Kamens, with extra read() hanging while waiting for EOF
Application level fix: shutdown()
Cygwin level fix: Corinna's socket/pid bookkeeping
NT
1) Jonathan Kamens / linger on close hack
Application level fix: shutdown()
Cygwin level fix: Corinna's socket/pid bookkeeping
Pierre