Work around Linux kernel bug provoked by nchan.c

Damien Miller djm at mindrot.org
Mon Aug 7 15:50:02 EST 2000


On Sun, 23 Jul 2000, Zack Weinberg wrote:

> The Linux implementation of TCP sockets has a bug which causes
> shutdown(sock, SHUT_RD) to fail spuriously (ENOTCONN) if the write
> side of the socket has already been shut down.  If you are using SSH
> port forwarding to tunnel HTTP through a firewall, nchan.c will tickle
> this bug once for every HTTP exchange.  You will therefore get lots of
> useless, annoying error messages:
 
[snip]

> I'd appreciate it if the appended patch could be applied.  It causes
> ssh to recognize the bug and not emit the error message.

Applied - thanks.

> [I've reported the bug to the kernel developers but they do not seem
> interested in fixing it.]
 
Can you give me a pointer to some discussion on this?

-d

-- 
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)








More information about the openssh-unix-dev mailing list