From 195a35ca0426c7a983c98430f5aee14c208b0893 Mon Sep 17 00:00:00 2001 From: Grzegorz Banasiak Date: Sat, 14 Dec 2024 17:56:23 +0100 Subject: [PATCH] Revert "Reject spurious socket connection attempts." This reverts commit 5a548597cf53cf17faff78ca49ba4d3939b217fb. --- thespian/system/transport/TCPTransport.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/thespian/system/transport/TCPTransport.py b/thespian/system/transport/TCPTransport.py index d8da06b..246a27c 100644 --- a/thespian/system/transport/TCPTransport.py +++ b/thespian/system/transport/TCPTransport.py @@ -1350,12 +1350,6 @@ def _acceptNewIncoming(self): accepted = False try: lsock, rmtTxAddr = self.new_socket(self.socket.accept) - if (lsock.proto != socket.IPPROTO_TCP - or lsock.family != socket.AF_INET - or lsock.type != socket.SOCK_STREAM): - # Spurious connection attempt: ignore - lsock.close() - return accepted = True except (OSError, socket.error) as ex: thesplog('Error accepting incoming: %s', ex)