Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partially revert "window_size: explicit adjustments only"
This partially reverts commit 03ca902 in order to fix extreme slowdown when uploading to localhost via SFTP. I was able to repeat the issue on RHEL-7 on localhost only. It did not occur when uploading via network and it did not occur on a RHEL-6 box with the same version of libssh2. The problem was that sftp_read() used a read-ahead logic to figure out the window_size, but sftp_packet_read() called indirectly from sftp_write() did not use any read-ahead logic.
- Loading branch information