Closed cbasix closed 4 years ago
It would be great if it where possible to set the timeouts for outgoing http requests (and therefore for the used requests module and lxml).
Motivation: i do have a use case where i would prefer the FritzConnection to fall rather than to stall the execution for two minutes.
Minimal Example:
start = datetime.now() try: fc = FritzConnection("google.com") finally: print(datetime.now()-start)
Output: 0:02:00.105666
I never thought about a use case like this. But as requests provides timeout, it makes sense to add this feature. Will come with the next release (1.1).
Thanks for your effort. Works like a charm.
It would be great if it where possible to set the timeouts for outgoing http requests (and therefore for the used requests module and lxml).
Motivation: i do have a use case where i would prefer the FritzConnection to fall rather than to stall the execution for two minutes.
Minimal Example:
Output: 0:02:00.105666