|
|
@@ -376,6 +376,8 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session) |
|
|
|
if((nread < 0) && (nread == -EAGAIN)) { |
|
|
|
session->socket_block_directions |= |
|
|
|
LIBSSH2_SESSION_BLOCK_INBOUND; |
|
|
|
_libssh2_debug(session, LIBSSH2_TRACE_SOCKET, |
|
|
|
"setting INBOUND flag, nread: %d", nread); |
|
|
|
return LIBSSH2_ERROR_EAGAIN; |
|
|
|
} |
|
|
|
_libssh2_debug(session, LIBSSH2_TRACE_SOCKET, |
|
|
@@ -411,6 +413,8 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session) |
|
|
|
check is only done for the initial block since once we have |
|
|
|
got the start of a block we can in fact deal with fractions |
|
|
|
*/ |
|
|
|
_libssh2_debug(session, LIBSSH2_TRACE_SOCKET, |
|
|
|
"setting INBOUND flag, numbytes: %d, blocksize: %d", numbytes, blocksize); |
|
|
|
session->socket_block_directions |= |
|
|
|
LIBSSH2_SESSION_BLOCK_INBOUND; |
|
|
|
return LIBSSH2_ERROR_EAGAIN; |
|
|
|