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

can raise RequestTimeout on connection timeout #127

Open
belm0 opened this issue Jun 21, 2019 · 4 comments
Open

can raise RequestTimeout on connection timeout #127

belm0 opened this issue Jun 21, 2019 · 4 comments

Comments

@belm0
Copy link

belm0 commented Jun 21, 2019

in request():

sock = await timeout_manager(
     connection_timeout, self._grab_connection, url)

so this is establishing a connection, not making the request. Yet timeout_manager() will raise RequestTimeout.

Overall it would be helpful if exception cases are documented for request().

@theelous3
Copy link
Owner

Fair point. I lazily reused that for both the connection and the request, rather than give them a base class.

I'll sort this and slap it in the docs :)

@PurpleMyst
Copy link
Contributor

This was resolved in ced7a74

@belm0
Copy link
Author

belm0 commented Oct 7, 2019

This was resolved in ced7a74

I don't think so, since that commit predates the problem report by a year.

@theelous3
Copy link
Owner

Yeah no, @belm0 was asking for two separate possible exceptions:

ConnectionTimeout on failed connection attempts.
RequestTimeout on successful connects where the server didn't respond to the https request on time.

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

No branches or pull requests

3 participants