Message232726
I just will write next code-fragment:
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
s.connect(('python.org', 80))
print(
'is my operation system using (by default) "tcpkeepalive"-algorithm for testing broken-connection? answer:',
s.getsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE)
)
# answer is 0 (false) -- for all GNU/Linux
my previous code-example has 100-iteration -- only for we could catch the right-moment when testing (and for nothing else). |
|
Date |
User |
Action |
Args |
2014-12-16 08:33:01 | polymorphm | set | recipients:
+ polymorphm, loewis, flox, mcjeff, berker.peksag, demian.brecht |
2014-12-16 08:33:01 | polymorphm | set | messageid: <1418718781.19.0.978417459965.issue14134@psf.upfronthosting.co.za> |
2014-12-16 08:33:01 | polymorphm | link | issue14134 messages |
2014-12-16 08:33:00 | polymorphm | create | |
|