enable SO_KEEPALIVE on all connections
This timeout is notoriously long (about two hours), but it might eventually prune stuck connections. refs #9
This commit is contained in:
parent
273c4d796c
commit
42a293213b
|
@ -46,6 +46,7 @@ class TransitConnection(protocol.Protocol):
|
|||
def connectionMade(self):
|
||||
self._started = time.time()
|
||||
self._log_requests = self.factory._log_requests
|
||||
self.transport.setTcpKeepAlive(True)
|
||||
|
||||
def dataReceived(self, data):
|
||||
if self._sent_ok:
|
||||
|
|
Loading…
Reference in New Issue
Block a user