jsch icon indicating copy to clipboard operation
jsch copied to clipboard

Fix added

Open manishbansal8843 opened this issue 3 years ago • 4 comments

Fix for #38

File output stream is flushed just before remote window size is diminished. This will avoid choking channel piped input stream buffer and session thread will be able to ingest SSH_MSG_CHANNEL_WINDOW_ADJUST.

manishbansal8843 avatar Jul 18 '21 11:07 manishbansal8843

@manishbansal8843 @Hima88888888 I am using jsch to set up a port forwarding tunnel and then execute REST API requests over it. I see that for larger payloads the client gets "stuck" and seemingly does not receive anything anymore and eventually throws a timeout.

Would the fix in this branch help with this issue as well?

j-dimension avatar May 28 '22 23:05 j-dimension

@manishbansal8843 @Hima88888888 I am using jsch to set up a port forwarding tunnel and then execute REST API requests over it. I see that for larger payloads the client gets "stuck" and seemingly does not receive anything anymore and eventually throws a timeout.

Would the fix in this branch help with this issue as well?

I think so. This seems to be the same issue. I would encourage you to try that. However, few people have reported that this fix did not work for them and i did not get a chance to further debug. But this fix has been working for me from last 1 year in production.

manishbansal8843 avatar May 31 '22 04:05 manishbansal8843

I think so. This seems to be the same issue. I would encourage you to try that. However, few people have reported that this fix did not work for them and i did not get a chance to further debug. But this fix has been working for me from last 1 year in production.

Thanks @manishbansal8843 , will give it a try.

j-dimension avatar May 31 '22 19:05 j-dimension

Please submit this pull-request here: https://github.com/andreasrosdal/sschlib

andreasrosdal avatar Oct 19 '22 07:10 andreasrosdal