[issue1503] test_xmlrpc is still flakey

Neal Norwitz report at bugs.python.org
Fri Mar 28 07:39:56 CET 2008


Neal Norwitz <nnorwitz at gmail.com> added the comment:

Ugh.  The manpage for accept on Ubuntu 6.10 says:

"""
On  Linux,  the  new  socket returned by accept() does not inherit file
status flags such as O_NONBLOCK and O_ASYNC from the listening  socket.
This  behaviour  differs from the canonical BSD sockets implementation.
Portable programs should not rely on inheritance or non-inheritance  of
file  status  flags and always explicitly set all required flags on the
socket returned from accept().
"""

http://msdn2.microsoft.com/en-us/library/aa450277.aspx says that Windows
(CE, but I assume all variants) are like BSD in that they inherit
attributes.

"""The newly created socket is the socket that will handle the actual
connection and has the same properties as socket s, including the
asynchronous events registered with the WSAEventSelect function."""

I assume that means blocking behavior.

I checked in r61993 which should fix the immediate problem with
test_xmlrpc.  I wonder if we should change socket to do the same thing
for all platforms.

----------
nosy: +nnorwitz

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1503>
__________________________________


More information about the Python-bugs-list mailing list