From 82d762cae564491222c49c764f7f91454d95a99a Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Mon, 27 Nov 2006 07:37:40 +0000 Subject: [PATCH] Improve detection of closed channel. Eleminates lock-ups on multi-channel operation. --- src/packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packet.c b/src/packet.c index 523b5f1..d6ef2a6 100644 --- a/src/packet.c +++ b/src/packet.c @@ -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);