diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-08 17:53:17 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-08 17:53:17 +0200 |
commit | 72db96f56c737e613f59db8afa8f43492e0cee19 (patch) | |
tree | 3e0b8f6ece636292cacd311a29534c5417f84153 | |
parent | 5887edf3d2b73a8feef6a8be804988d3e030bc67 (diff) | |
download | dabmod-72db96f56c737e613f59db8afa8f43492e0cee19.tar.gz dabmod-72db96f56c737e613f59db8afa8f43492e0cee19.tar.bz2 dabmod-72db96f56c737e613f59db8afa8f43492e0cee19.zip |
DPDCE: Set socket timeout for Measure
-rw-r--r-- | dpd/src/Measure.py | 1 |
1 files changed, 1 insertions, 0 deletions
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") |