-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
In-built request timeout functionality #28
Comments
This feature has been started in the underlying library reactphp-legacy/socket-client#10. Once it's implemented there it should be simple enough to add here. |
👍 on supporting a timeout setting. Though I'm not sure what the API could look like… I think it makes sense to add an API similar to reactphp-legacy/socket-client#10. Any thoughts on this @Renegade334? |
Clients like cURL support both a connection timeout and a total timeout. Both would be useful, IMO, although I was originally thinking of total timeout when submitting this. The latter would be a client-level feature, I guess, whereas the former would be socket-level.
|
@Renegade334 yes that makes sense. We could even go for 3 time outs:
|
FWIW: This is likely related to #36. Possible implementation approach could be to just |
I'm closing this as it is already supported by the new HTTP client that has been merged into |
Currently, request timeouts can be implemented somewhat messily by specifying loop timers and attempting to manually close the request. They should ideally be in-built.
The text was updated successfully, but these errors were encountered: