electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a41d3d6a8256656fc41f4466fddb4de3aa5a4a69
parent 96e2a3d7e1ee7cada1da0d03bf1c089e4abba307
Author: thomasv <thomasv@gitorious>
Date:   Fri, 10 Feb 2012 13:14:04 +0100

default timeout

Diffstat:
Mclient/interface.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/interface.py b/client/interface.py @@ -22,6 +22,7 @@ import random, socket, ast import thread, traceback, sys, time +DEFAULT_TIMEOUT=5 class Interface: def __init__(self): @@ -60,7 +61,7 @@ class Interface: t1 = time.time() request = repr ( (cmd, params) ) + "#" s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) - s.settimeout(2) + s.settimeout(DEFAULT_TIMEOUT) s.connect(( self.host if cmd!='peers' else self.peers_server, self.port) ) s.send( request ) out = ''