diff options
| author | 2019-05-27 07:58:24 +0100 | |
|---|---|---|
| committer | 2019-05-27 07:58:24 +0100 | |
| commit | 5b780672a8dc0b5b9adf7d472889205bc882b48f (patch) | |
| tree | b0b4eafec93d85bea947ea8a5764195e8584a925 /src/IRCSocket.py | |
| parent | Only check for unknown dependencies once (diff) | |
| signature | ||
Enable TCP keepalives
Diffstat (limited to 'src/IRCSocket.py')
| -rw-r--r-- | src/IRCSocket.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/IRCSocket.py b/src/IRCSocket.py index 82c736ee..3260945e 100644 --- a/src/IRCSocket.py +++ b/src/IRCSocket.py @@ -58,6 +58,7 @@ class Socket(IRCObject.Object): bindhost = (self._bindhost, 0) self._socket = socket.create_connection((self._hostname, self._port), 5.0, bindhost) + self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) if self._tls: self._tls_wrap() |
