summaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-08 17:53:17 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-08 17:53:17 +0200
commit72db96f56c737e613f59db8afa8f43492e0cee19 (patch)
tree3e0b8f6ece636292cacd311a29534c5417f84153 /dpd/src/Measure.py
parent5887edf3d2b73a8feef6a8be804988d3e030bc67 (diff)
downloaddabmod-72db96f56c737e613f59db8afa8f43492e0cee19.tar.gz
dabmod-72db96f56c737e613f59db8afa8f43492e0cee19.tar.bz2
dabmod-72db96f56c737e613f59db8afa8f43492e0cee19.zip
DPDCE: Set socket timeout for Measure
Diffstat (limited to 'dpd/src/Measure.py')
-rw-r--r--dpd/src/Measure.py1
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")