Hi
The problem with the self test is the code in channel_close() that
unconditionally waits for the remote EOF to arrive. Quite clearly it is simply
not coming here, and thus libssh2 hangs there waiting for it.
This was introduced by Peter in commit
16af813b812aca09c73045288040ddf1a03a2b86:
Send and receive channel EOF before sending SSH_MSG_CHANNEL_CLOSE
Sending SSH_MSG_CHANNEL_CLOSE without channel EOF is explicitly allowed
in RFC 4254, but some non-conforming servers will hang or time out when
the channel is closed before EOF.
Other common clients send and receive EOF before closing, there are no
drawbacks, and some servers need it to work correctly.
Is there really anything we can do about this? I mean, if we're about to close
the channel, we can't sit and waiting for an EOF that might not come!
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-04-13