Permalink
Browse files

Increase the timeout for the client to 5 minutes.

Sometimes the connection would be dropped when large files were being transferred
  • Loading branch information...
1 parent 6fcbed1 commit fb41b5d51391f1a079154f2f3b3c8d7dd78defa3 Vrachnis Ilias-Dimitrios committed with vrachnis Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 txclib/project.py
View
@@ -746,7 +746,7 @@ def do_url_request(self, api_call, multipart=False, data=None,
req.add_header("Accept-Encoding", "gzip,deflate")
try:
- response = urllib2.urlopen(req, timeout=10)
+ response = urllib2.urlopen(req, timeout=300)
return http_response(response)
except urllib2.HTTPError, e:
if e.code in [401, 403, 404]:

0 comments on commit fb41b5d

Please sign in to comment.