Skip to content

Commit acf5cb2

Browse files
authored
Merge pull request #79 from gbanasiak/revert-spurious
Revert "Reject spurious socket connection attempts."
2 parents 4a7b522 + 195a35c commit acf5cb2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

thespian/system/transport/TCPTransport.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,12 +1350,6 @@ def _acceptNewIncoming(self):
13501350
accepted = False
13511351
try:
13521352
lsock, rmtTxAddr = self.new_socket(self.socket.accept)
1353-
if (lsock.proto != socket.IPPROTO_TCP
1354-
or lsock.family != socket.AF_INET
1355-
or lsock.type != socket.SOCK_STREAM):
1356-
# Spurious connection attempt: ignore
1357-
lsock.close()
1358-
return
13591353
accepted = True
13601354
except (OSError, socket.error) as ex:
13611355
thesplog('Error accepting incoming: %s', ex)

0 commit comments

Comments
 (0)