Browse Source

add some debugging for understanding how these flags are set..

remotes/client/ssh-main
John-Mark Gurney 4 years ago
parent
commit
718dd008f3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libssh2/src/transport.c

+ 4
- 0
libssh2/src/transport.c View File

@@ -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;


Loading…
Cancel
Save