-
Notifications
You must be signed in to change notification settings - Fork 19
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
Define request timeout for Client.fetch #128
Comments
I need to drop the connection trying after 300ms. |
There is no such API currently. You can instead use Future.delay(300, Failure(new Error('Timed out'))).first(Client.fetch(...)); |
I mean now there is a long time (1-3 sec) while the connection be dropped. I need to iterate over ip addresses from 1-255 and test them to there is available connection. So the ideal would be just 300 (or under) millisec |
Like in this cordova plugin: |
How can I set timeout (how many time wait for response) for Client.fetch method?
The text was updated successfully, but these errors were encountered: