diff options
author | lovetox <philipp@hoerist.com> | 2020-03-17 00:29:39 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-17 00:29:39 +0300 |
commit | 384b50b087c4e7eb0fbb1ca63ab1537760afbd64 (patch) | |
tree | 4bfec0d94027065799a969f1c2fcf2d29d91f617 /nbxmpp | |
parent | cc377e71ed9aa4b1f541de272b108249b34624a3 (diff) |
TCP: Set timeout when connecting
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/tcp.py | 1 |
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() |