mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Fix the window not growing problem
Fix conflict with patch from milo Conflicts: src/channels.c
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user