-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.0.8 - External storage SFTP incredible slow #4063
Comments
Yes it is. |
Compared to other external storages, SFTP is the slowest. |
I debugged a bit and found out that each login call takes about 1 second. Tried to debug into phpseclib/Net/SFTP.php and there seem to be a few loops that handle packets. |
I tried to add some debug logging.
|
Looks like the latest phpseclib provides a stream wrapper: https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Net/SFTP/Stream.php Might be worth a try to use that one to directly stream the file instead of downloading it first. |
Stream wrapper is not usable yet: phpseclib/phpseclib#169 |
- Upgraded phpseclib to master version (post 0.3.5) - Now using fopen() on sftp URL for both read and write - Fixes #4063
Fixed by #5965 |
- Upgraded phpseclib to master version (post 0.3.5) - Now using fopen() on sftp URL for both read and write - Fixes #4063
- Upgraded phpseclib to master version (post 0.3.5) - Now using fopen() on sftp URL for both read and write - Fixes #4063
I have the OwnCloud 5.0.8 running at my hosting provider and trying to mount my home NAS directory containing pictures. SSH running on standard port.
This is incredible slow, it seems that OC is trying to index and cache everything before even showing the directory tree.
The text was updated successfully, but these errors were encountered: