From 92b981e51fec26140cebc311c4c1e6193ef60b8e Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Fri, 25 Sep 2020 16:49:24 -0400 Subject: [PATCH] httpclient: document connect_timeout/request_timeout 0 value not exactly true for curl_httpclient (libcurl uses a connect_timeout of 300 seconds if no connect timeout is set) but close enough --- tornado/httpclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 7eebf0334..3011c371b 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -421,9 +421,9 @@ class HTTPRequest(object): supports "basic" and "digest"; ``simple_httpclient`` only supports "basic" :arg float connect_timeout: Timeout for initial connection in seconds, - default 20 seconds + default 20 seconds (0 means no timeout) :arg float request_timeout: Timeout for entire request in seconds, - default 20 seconds + default 20 seconds (0 means no timeout) :arg if_modified_since: Timestamp for ``If-Modified-Since`` header :type if_modified_since: `datetime` or `float` :arg bool follow_redirects: Should redirects be followed automatically -- 2.47.2