[issue1503] test_xmlrpc is still flakey
Ralf Schmitt
report at bugs.python.org
Wed Mar 26 23:01:33 CET 2008
Ralf Schmitt <schmir at gmail.com> added the comment:
I just double checked with the following program:
#! /usr/bin/env python
import os
import fcntl
import socket
def isnonblocking(fd):
return bool(fcntl.fcntl(fd, fcntl.F_GETFL, 0) & os.O_NONBLOCK)
def main():
s=socket.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(("0.0.0.0", 8000))
s.listen(5)
s.settimeout(30)
print "server isnonblocking:", isnonblocking(s.fileno())
client, addr = s.accept()
print "client isnonblocking:", isnonblocking(client.fileno())
if __name__=="__main__":
main()
on my g4 mac it prints:
~/ python serv.py
ralf at mini ok
server isnonblocking: True
client isnonblocking: True
on linux:
~/ python mini/serv.py
ralf at rat64 ok
server isnonblocking: True
client isnonblocking: False
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1503>
__________________________________
More information about the Python-bugs-list
mailing list