Improve detection of closed channel. Eleminates lock-ups on

multi-channel operation.
This commit is contained in:
Mikhail Gusarov 2006-11-27 07:37:40 +00:00
parent 1c1c74479e
commit 82d762cae5

View File

@ -548,6 +548,7 @@ static int libssh2_packet_add(LIBSSH2_SESSION *session, unsigned char *data, siz
#endif
channel->remote.close = 1;
channel->remote.eof = 1;
/* TODO: Add a callback for this */
LIBSSH2_FREE(session, data);