From ca874215a793024d420be316bc04ba3cdacecc45 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Tue, 21 May 2013 12:51:52 -0400 Subject: [PATCH] set a short timeout for incoming connections which are not fully established with version messages --- src/bitmessagemain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index b569b7ff..9bb61177 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -221,7 +221,8 @@ class singleListener(threading.Thread): a.close() a,(HOST,PORT) = sock.accept() objectsOfWhichThisRemoteNodeIsAlreadyAware = {} - + a.settimeout(20) + sd = sendDataThread() sd.setup(a,HOST,PORT,-1,objectsOfWhichThisRemoteNodeIsAlreadyAware) sd.start()