Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cancel timeout after connected. emmmmmmm, a mixed blessing. have to t…

…rade off
  • Loading branch information...
commit 925ef4e82d60c9f27329c428e3f011ffec7da506 1 parent 706f53a
Phus Lu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  local/proxy.py
  2. BIN  local/python27.zip
View
2  local/proxy.py
@@ -434,6 +434,8 @@ def _create_connection((ip, port), timeout, queue):
start_time = time.time()
sock.connect((ip, port))
self.connection_time['%s:%s'%(ip,port)] = time.time() - start_time
+ # reset timeout default to avoid long http upload failure, but it will delay timeout retry :(
+ sock.settimeout(None)
queue.put(sock)
except socket.error as e:
queue.put(e)
View
BIN  local/python27.zip
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.