Charles-François Natali added the comment: Alright, I think I know what's happening.
The Python implementation uses a TCP socket, whereas the native implementation uses AF_UNIX socket. The maximum size of data that can be written to a socket without blocking is given by its send/receive buffers. On Linux, the default buffer sizes are set by: net.core.(r|w)mem_default but for TCP sockets, its set by: net.ipv4.tcp_(r|w)mem So on your machine, you probably have tcp_(r|w)mem quite larger than (r|w)mem, so the sendall test doesn't write enough data to the socket to block. The solution is simply to increase the amount of data written. Could you try the attached patch? If it works I'll commit it, because the test isn't really reliable (i.e. it could fail on a machine with a large (r|w)mem_default). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18643> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com