determine whether default_timeout=None is reasonable #1897
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In the course of investigating a client issue, I discovered that the
transports/base.py
wraps some methods withdefault_timeout=None
, as reflected in the golden files here.Is this reasonable? If the user does not explicitly specify a
timeout
when invoking the method, thedefault_timeout
value gets passed all the way through the Pythonrequests
library and, as currently set, would not time out RPC calls. Should we change the default?In the current customer issue I'm investigating (Googlers: b/318069394), for some other reason (still unclear) the server appears to be taking too long to respond, but the client's request method only yields control (by throwing an exception) when the connection is finally dropped, not earlier.
[We should also check that retries are enabled correctly with reasonable values.]
The text was updated successfully, but these errors were encountered: