sftp RETR hangs after 32732 bytes, STOR works fine
Posted: Sat May 01, 2010 6:19 pm
Hi, first I'd like to say I've found a workaround (solution?) to this, but I'm posting the problem in case this is an actual bug.
Platform:
- Windows Server 2000SP4 stand-alone (not domain) fully updated, no active directory.
- Core Server 1.0 build 342 with the 2.1 build 1647 LE client.
- Also tried it with the newest Pro client.
- The failure occurs on the local network, as well as through the router from the internet, same problem.
Core setup:
- core user management only, no active directory, no winnt users.
- SSH only on port 22, allow key auth, key auth only, force passwords with keys.
- SSH self-signed cert for encryption.
- priv/pub keys generated with core client for auth, as well as passwords.
Problem:
- logon works properly, browsing folders works properly.
- uploading files of any size works fine.
- downloading files smaller than 32k works fine.
- downloading files larger than 32k hangs at 32732 bytes.
- pausing the queue and resuming will download another 32732 bytes, repeating this process will eventually download the whole file.
Solution:
I've spent a few days trying different combinations of options, buffer sizes, etc. without much luck, except for this...
Don't use certs to authenticate users or don't force passwords with keys.
Since my customer's requirements include using keys for authentication, I've disabled the force passwords with keys. This solves the problem and allows downloading of files of any size.
If anyone has any other solutions for this, I'd be interested to hear them!
Thanks. --philip
Platform:
- Windows Server 2000SP4 stand-alone (not domain) fully updated, no active directory.
- Core Server 1.0 build 342 with the 2.1 build 1647 LE client.
- Also tried it with the newest Pro client.
- The failure occurs on the local network, as well as through the router from the internet, same problem.
Core setup:
- core user management only, no active directory, no winnt users.
- SSH only on port 22, allow key auth, key auth only, force passwords with keys.
- SSH self-signed cert for encryption.
- priv/pub keys generated with core client for auth, as well as passwords.
Problem:
- logon works properly, browsing folders works properly.
- uploading files of any size works fine.
- downloading files smaller than 32k works fine.
- downloading files larger than 32k hangs at 32732 bytes.
- pausing the queue and resuming will download another 32732 bytes, repeating this process will eventually download the whole file.
Solution:
I've spent a few days trying different combinations of options, buffer sizes, etc. without much luck, except for this...
Don't use certs to authenticate users or don't force passwords with keys.
Since my customer's requirements include using keys for authentication, I've disabled the force passwords with keys. This solves the problem and allows downloading of files of any size.
If anyone has any other solutions for this, I'd be interested to hear them!
Thanks. --philip