File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
shotgun_api3/lib/httplib2 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5555import socket
5656
5757try :
58- from httplib2 import socks
58+ #from httplib2 import socks
59+ import socks
5960except ImportError :
6061 socks = None
6162
@@ -772,6 +773,8 @@ def connect(self):
772773 try :
773774 if self .proxy_info and self .proxy_info .isgood ():
774775 self .sock = socks .socksocket (af , socktype , proto )
776+ # HACK: amorton enabled TCP_NODELAY on socket
777+ self .sock .setsockopt (socket .IPPROTO_TCP , socket .TCP_NODELAY , 1 )
775778 self .sock .setproxy (* self .proxy_info .astuple ())
776779 else :
777780 self .sock = socket .socket (af , socktype , proto )
@@ -877,6 +880,8 @@ def connect(self):
877880 try :
878881 if self .proxy_info and self .proxy_info .isgood ():
879882 sock = socks .socksocket (family , socktype , proto )
883+ # HACK: amorton enabled TCP_NODELAY on socket
884+ sock .setsockopt (socket .IPPROTO_TCP , socket .TCP_NODELAY , 1 )
880885 sock .setproxy (* self .proxy_info .astuple ())
881886 else :
882887 sock = socket .socket (family , socktype , proto )
You can’t perform that action at this time.
0 commit comments