1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-02 10:53:16 +03:00

Make libssh2_channel_receive_window_adjust() properly support non-blocking

This commit is contained in:
James Housley
2007-06-17 23:35:07 +00:00
parent 019cd1abc0
commit ba728148a9
2 changed files with 29 additions and 22 deletions

View File

@@ -316,6 +316,10 @@ struct _LIBSSH2_CHANNEL {
unsigned long flush_refund_bytes;
unsigned long flush_flush_bytes;
/* State variables used in libssh2_channel_receive_window_adjust() */
libssh2_nonblocking_states adjust_state;
unsigned char adjust_adjust[9]; /* packet_type(1) + channel(4) + adjustment(4) */
/* State variables used in libssh2_channel_read_ex() */
libssh2_nonblocking_states read_state;
LIBSSH2_PACKET *read_packet;