diff --git a/common/xmlstream.py b/common/xmlstream.py index 43646bec7..2d0d9c0a0 100644 --- a/common/xmlstream.py +++ b/common/xmlstream.py @@ -460,6 +460,7 @@ class Client(Stream): return self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + self._sock.settimeout(10) try: if self._proxy: self._sock.connect((self._proxy['host'], self._proxy['port'])) else: self._sock.connect((self._hostIP, self._port))