From e34cf942712aba246f589c4497870be7aa3b863c Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 14 Apr 2021 16:23:49 -0600 Subject: [PATCH] no need to check anymore --- src/wormhole_transit_relay/transit_server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wormhole_transit_relay/transit_server.py b/src/wormhole_transit_relay/transit_server.py index 426f50f..567fbd9 100644 --- a/src/wormhole_transit_relay/transit_server.py +++ b/src/wormhole_transit_relay/transit_server.py @@ -52,10 +52,7 @@ class TransitConnection(LineReceiver): def connectionMade(self): self._started = time.time() self._log_requests = self.factory._log_requests - try: - self.transport.setTcpKeepAlive(True) - except AttributeError: - pass + self.transport.setTcpKeepAlive(True) def lineReceived(self, line): # old: "please relay {64}\n"