1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Fix the window not growing problem

Fix conflict with patch from milo
Conflicts:

	src/channels.c
This commit is contained in:
Aris Adamantiadis
2010-10-02 22:54:59 +02:00
parent d7581c4daa
commit 0d5cc01f1c

View File

@@ -515,7 +515,12 @@ SSH_PACKET_CALLBACK(channel_rcv_data){
channel->callbacks->userdata); channel->callbacks->userdata);
if(rest > 0) { if(rest > 0) {
buffer_pass_bytes(buf, rest); buffer_pass_bytes(buf, rest);
channel->local_window += rest; }
if (channel->local_window < WINDOWLIMIT) {
if (grow_window(session, channel, 0) < 0) {
leave_function();
return -1;
}
} }
} }