Commit 384b50b0 authored by Philipp Hörist's avatar Philipp Hörist

TCP: Set timeout when connecting

parent cc377e71
Pipeline #5121 passed with stages
in 1 minute and 3 seconds
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment