-
Notifications
You must be signed in to change notification settings - Fork 359
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
Timeout when using ftps to invoke .List and .NameList (TLS) #253
Comments
I observed the same behaviour using the latest version (v0.0.0-20220310202011-d2c44e311e78), when calling List(), Retr() or Stor() the connection hangs after entering passive mode with "Context deadline exceeded". |
Yes! The downgrade worked! Thank you so much @Salicorne!!! 👏 👍 💯 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This patch seems to be the breaking change: From this diagram (https://www.rfc-editor.org/rfc/rfc4217#section-12.7) it looks like the client is only supposed to open the data connection and do the TLS handshake after issuing the command requiring the connection. Currently the client opens the connection and performs the handshake before the command. The old code did not perform the handshake when opening the connection, instead the handshake was performed lazily on first use. |
I also have same problem. I cannot fix this by old version(v0.0.0-20220301011324-fed5bc26b7fa).
|
I can confirm that the downgrade solved my problem as well (hanging on PASV in FTPS). So whatever you changed, it messed up the Passive mode. |
I'm also faced with same problem. Is it safe to downgrade to previous version ? Any timeline or dates on fix for this is much appreciated. |
I am also facing similar issue with ftps. please fix this asap or please let us know timeline if any |
Also encountered this. Using a previous version as suggested works fine. |
me too |
+1 |
Looks like this was fixed in #283 |
Describe the bug
Timeout when using
ftps
to invoke.List
and.NameList
. Error is "context deadline exceeded".Maybe (??) related to an underlying TLS issue - possibly #249 and #252
To Reproduce
Expected behavior
The list of file names should be retrieved.
FTP server
This is all TLS v1.2. From the hosting provider...
Debug output
The vendor's ftp-server logged the following commands.
Below is output from the vendor's ftp-server when I connected from within Filezilla from the same development workstation. Notice it succeeded at
MLSD
but the prior connection using jlaffaye/ftp failed atMLSD
(it wasn't present above - timed out after 227 Entering Passive Mode).Filezilla's client-side output is shown below. This shows success and lists the directory.
The command that failed with jlaffaye/ftp
MLSD
begins at ftp.line-619 but error occurs lower in the stack in the submission of the tcp data that is issued to the server.Additional context
The text was updated successfully, but these errors were encountered: