git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a35a945
)
set timeout to 1 minute
author
ThomasV
<thomasv@gitorious>
Sun, 20 May 2012 16:02:05 +0000 (18:02 +0200)
committer
ThomasV
<thomasv@gitorious>
Sun, 20 May 2012 16:02:05 +0000 (18:02 +0200)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
c29dab7
..
710f7d8
100644
(file)
--- a/
lib/interface.py
+++ b/
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))