Skip to content
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

Connection to server doesn't time out according to timeout parameter #13

Open
AdelMimoun opened this issue Apr 25, 2020 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@AdelMimoun
Copy link

When attempting to connect to a server, if the server is unavailable, the connection times out after over two minutes, instead of the timeout value previously set.

Smartphone:

  • Device: Huawei p20 pro CLT-L29
  • OS: Android 9

Log
...
I/flutter ( 8045): [25.04.2020 18:02:29.330] Connecting...
I/flutter ( 8045): SocketException: Connection failed (OS Error: Connection timed out, errno = 110), address = 10.101.0.1, port = 21


The timeout happened after 2 minutes and 15 seconds, while the timeout value was set to 10 seconds in the FTPClient constructor
@AdelMimoun AdelMimoun added the bug Something isn't working label Apr 25, 2020
@virtualmarc
Copy link
Contributor

The timeout is currently not used as a socket timeout.
It's just a timeout how long the lib waits for a reply from a command.

I'll add the timeout to the socket connection.

@virtualmarc virtualmarc self-assigned this Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants