asks icon indicating copy to clipboard operation
asks copied to clipboard

can raise RequestTimeout on connection timeout

Open belm0 opened this issue 6 years ago • 4 comments

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().

belm0 avatar Jun 21 '19 04:06 belm0

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 :)

theelous3 avatar Jun 23 '19 13:06 theelous3

This was resolved in ced7a74a

PurpleMyst avatar Oct 06 '19 21:10 PurpleMyst

This was resolved in ced7a74

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

belm0 avatar Oct 07 '19 10:10 belm0

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.

theelous3 avatar Oct 07 '19 13:10 theelous3