Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
allow connect and request timeouts of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymrm committed Jan 28, 2010
1 parent 47db027 commit a2adfa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tornado/httpclient.py
Expand Up @@ -257,7 +257,7 @@ def _finish(self, curl, curl_error=None, curl_message=None):
class HTTPRequest(object):
def __init__(self, url, method="GET", headers={}, body=None,
auth_username=None, auth_password=None,
connect_timeout=None, request_timeout=None,
connect_timeout=20.0, request_timeout=20.0,
if_modified_since=None, follow_redirects=True,
max_redirects=5, user_agent=None, use_gzip=True,
network_interface=None, streaming_callback=None):
Expand All @@ -273,8 +273,8 @@ def __init__(self, url, method="GET", headers={}, body=None,
self.body = body
self.auth_username = _utf8(auth_username)
self.auth_password = _utf8(auth_password)
self.connect_timeout = connect_timeout or 20.0
self.request_timeout = request_timeout or 20.0
self.connect_timeout = connect_timeout
self.request_timeout = request_timeout
self.follow_redirects = follow_redirects
self.max_redirects = max_redirects
self.user_agent = user_agent
Expand Down

0 comments on commit a2adfa1

Please sign in to comment.