From 72db96f56c737e613f59db8afa8f43492e0cee19 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 8 Oct 2017 17:53:17 +0200 Subject: DPDCE: Set socket timeout for Measure --- dpd/src/Measure.py | 1 + 1 file changed, 1 insertion(+) (limited to 'dpd/src/Measure.py') diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py index 5d0da65..d4b1d9e 100644 --- a/dpd/src/Measure.py +++ b/dpd/src/Measure.py @@ -44,6 +44,7 @@ class Measure: def receive_tcp(self): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.settimeout(4) s.connect(('localhost', self.port)) logging.debug("Send version") -- cgit v1.2.3