I just recently dealt with a timeout issue in requests: I was setting the timeout to 1 but it took 10 seconds for the request to fail. It turns out that the timeout <i>does not apply</i> to the name resolver and the name lookup was timing out. So the default system-level timeout was 10 seconds.
Thank you for this brief reference. I'm always going back to my old projects to remind myself how I did things with requests. I didn't realize some of things existed.
I wish that requests had a default timeout instead of defaulting to waiting forever.<p>It's very easy for devs to forget to think about timeouts, but inevitably that ends in a cascading production outage.
If I enable logging of retries: logging.basicConfig(level=logging.DEBUG)<p>I dont see any retries on response 200: ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='domain.com', port=443): Read timed out."))<p>Is there a way to also retry on ChunkedEncodingError?