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"