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

Add request maximum timeout #143

Closed
wants to merge 2 commits into from
Closed

Add request maximum timeout #143

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 12, 2019

This PR adds an optional maximum timeout for requests. The maximum timeout is measured from the start of the request (just before connecting) to the end of the response.

To allow this to be implemented in a non-BC way, I've added two methods to the Request class which should be moved into the constructor in the next major version.

The event loop is automatically set in the Client after creating the Request and as such the method is marked as internal.

I've added documentation to the README and tests. I'm not completely sure if the tests are okay, so these should be verified.

Resolves #28.

@WyriHaximus WyriHaximus requested review from WyriHaximus, clue and jsor July 12, 2019 09:24
@ghost
Copy link
Author

ghost commented Oct 8, 2019

@WyriHaximus @clue @jsor ping

@ghost ghost closed this Dec 5, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In-built request timeout functionality
0 participants