Fixed the problem that TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT are not attributes of the socket object in Windows. Verified that the script now works on Windows. It should now work on OS X too (the original shouldn't) but I don't have access to a Mac to test this.
Fixed the problem that
TCP_KEEPIDLE
,TCP_KEEPINTVL
andTCP_KEEPCNT
are not attributes of thesocket
object in Windows. Verified that the script now works on Windows. It should now work on OS X too (the original shouldn't) but I don't have access to a Mac to test this.