Browse Source

set timeout to 1 minute

283
ThomasV 13 years ago
parent
commit
958a3fa5b6
  1. 2
      lib/interface.py

2
lib/interface.py

@ -219,7 +219,7 @@ class TcpStratumInterface(Interface):
def init_socket(self):
self.s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
self.s.settimeout(5*60)
self.s.settimeout(60)
self.s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
try:
self.s.connect(( self.host, self.port))

Loading…
Cancel
Save