d4213c0ac5
This was caused by using the sftp.File.Read method which resets the streaming window after each call. Replacing it with sftp.File.WriteTo and an io.Pipe fixes the problem bringing the speed to the same as the sftp binary. |
||
---|---|---|
.. | ||
sftp.go | ||
sftp_internal_test.go | ||
sftp_test.go | ||
sftp_unsupported.go | ||
stringlock.go | ||
stringlock_test.go |