Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-17 00:29:39 +0300
committerlovetox <philipp@hoerist.com>2020-03-17 00:29:39 +0300
commit384b50b087c4e7eb0fbb1ca63ab1537760afbd64 (patch)
tree4bfec0d94027065799a969f1c2fcf2d29d91f617 /nbxmpp
parentcc377e71ed9aa4b1f541de272b108249b34624a3 (diff)
TCP: Set timeout when connecting
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/tcp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py
index b33651f..4968731 100644
--- a/nbxmpp/tcp.py
+++ b/nbxmpp/tcp.py
@@ -38,6 +38,7 @@ class TCPConnection(Connection):
Connection.__init__(self, *args, **kwargs)
self._client = Gio.SocketClient.new()
+ self._client.set_timeout(10)
if self._address.proxy is not None:
self._proxy_resolver = self._address.proxy.get_resolver()