Skip to content

Commit

Permalink
Merge pull request #79 from gbanasiak/revert-spurious
Browse files Browse the repository at this point in the history
Revert "Reject spurious socket connection attempts."
  • Loading branch information
kquick authored Dec 15, 2024
2 parents 4a7b522 + 195a35c commit acf5cb2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions thespian/system/transport/TCPTransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acf5cb2

Please sign in to comment.