channel_close: no longer wait for the SSH_MSG_CHANNEL_CLOSE message
As the packet may simply not arrive we cannot have the close function wait for it unconditionally.
Этот коммит содержится в:
родитель
f514bcac53
Коммит
0ecd0eb37c
@ -2221,9 +2221,8 @@ channel_close(LIBSSH2_CHANNEL * channel)
|
|||||||
if ((retcode = channel_send_eof(channel)))
|
if ((retcode = channel_send_eof(channel)))
|
||||||
return retcode;
|
return retcode;
|
||||||
|
|
||||||
if (!channel->remote.eof)
|
/* ignore if we have received a remote eof or not, as it is now too
|
||||||
if ((retcode = channel_wait_eof(channel)))
|
late for us to wait for it. Continue closing! */
|
||||||
return retcode;
|
|
||||||
|
|
||||||
if (channel->close_state == libssh2_NB_state_idle) {
|
if (channel->close_state == libssh2_NB_state_idle) {
|
||||||
_libssh2_debug(session, LIBSSH2_TRACE_CONN, "Closing channel %lu/%lu",
|
_libssh2_debug(session, LIBSSH2_TRACE_CONN, "Closing channel %lu/%lu",
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user