You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've already described the issue in detail on the phpseclib/phpseclib issue tracker as well: phpseclib/phpseclib#1923. This issue also links to a consistent reproducer project.
In SimpleConnectivityChecker, the flysystem-sftp-v3 adapter relies on phpseclib3\Net\SFTP::isConnected to check that the underlying connection is still connected. If not, it will try to create a new one. However, for long-running processes where the underlying TCP/IP connection may have timed out after a while, this check fails because the exposed phpseclib3\Net\SFTP::isConnected functionality cannot/does not capture this case.
I'm also reporting this issue here because I believe your library should not rely (only?) on SFTP::isConnected. The maintainer of phpseclib gave a suggestion on their tracker on how to check the underlying socket as well, if that helps/ feels appropriate.
How to reproduce
I have a reproducer project that highlights the issue.
Bug Report
Summary
I've already described the issue in detail on the phpseclib/phpseclib issue tracker as well: phpseclib/phpseclib#1923. This issue also links to a consistent reproducer project.
In SimpleConnectivityChecker, the
flysystem-sftp-v3
adapter relies onphpseclib3\Net\SFTP::isConnected
to check that the underlying connection is still connected. If not, it will try to create a new one. However, for long-running processes where the underlying TCP/IP connection may have timed out after a while, this check fails because the exposedphpseclib3\Net\SFTP::isConnected
functionality cannot/does not capture this case.I'm also reporting this issue here because I believe your library should not rely (only?) on
SFTP::isConnected
. The maintainer of phpseclib gave a suggestion on their tracker on how to check the underlying socket as well, if that helps/ feels appropriate.How to reproduce
I have a reproducer project that highlights the issue.
https://github.com/kevinreniers/phpseclib-iss1923
The text was updated successfully, but these errors were encountered: