Displaying 1 result from an estimated 1 matches for "channel_handle_".
Did you mean:
channel_handler
2008 May 21
11
[Bug 1467] New: SFTP stalls
...spawned ssh process.
On some systems (e.g. HP NonStop), read or write to a nonblocking
socket will fail with EWOULDBLOCK instead of EAGAIN. The code in
channels.c does not handle EAGAIN, causing the socket to be closed, but
the parent process does not recieve notification, leading to a stall.
in channel_handle_[erw]fd, the calls to read/write should check for
EWOULDBLOCK as well as EAGAIN:
e.g, in channel_handle_wfd:
len = write(c->wfd, buf, dlen);
if (len < 0 &&
(errno == EINTR ||
#ifdef EWOULDBLOCK
errno == EWOULDBL...