berak/ants-tcp — comment on commit 99b77c2bdb5e5ab710010035e5b56bf61a5d115c
File: tcpserver.py line 471
By berak:

i think this timeout only applies to the accepted client socket
( yes, there's a global socket.setdefaulttimeout method, too )

the first one(~l 470) is there to stop that empty request attack from your last issue.
(yes, i could just telnet in ,do nothing from there on and thus block the main thread/socket.)
let me know, if you got another idea to fix that.

the reason for not setting the second one to oo is to stop threads hanging in a recv loop
( you can't close the socket from the outside in that case )
after 10 mins idle input. ( there probably won't be any more )