Skip to content

Commit

Permalink
Use only a single value for both connect and read timeouts.
Browse files Browse the repository at this point in the history
Separate values for connect and read timeouts is not supported in python-requests < 2.4.0.
  • Loading branch information
Rohit Agarwal committed Apr 22, 2015
1 parent 2d30652 commit 51ff020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qds_sdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def _api_call_raw(self, req_type, path, data=None, params=None):
log.info("Params: %s" % params)

if req_type == 'GET':
r = x.get(url, timeout=(30, 300), **kwargs)
r = x.get(url, timeout=300, **kwargs)
elif req_type == 'POST':
r = x.post(url, timeout=(30, 300), **kwargs)
r = x.post(url, timeout=300, **kwargs)
elif req_type == 'PUT':
r = x.put(url, timeout=(30, 300), **kwargs)
r = x.put(url, timeout=300, **kwargs)
elif req_type == 'DELETE':
r = x.delete(url, timeout=(30, 300), **kwargs)
r = x.delete(url, timeout=300, **kwargs)
else:
raise NotImplemented

Expand Down

0 comments on commit 51ff020

Please sign in to comment.