[issue18329] for line in socket.makefile() speed degradation

Richard Oudkerk report at bugs.python.org
Thu Jul 4 20:30:10 CEST 2013


Richard Oudkerk added the comment:

The only real reason for implementing SocketIO in pure Python is because read() and write() do not work on Windows with sockets.  (I think there are also a few complications involving SSL sockets and the close() method.)

On Windows I have implemented a file object type in C which works with pipe handles.  I hope to use it in multiprocessing at some point.  It would not be too difficult to support sockets as well and use that instead of SocketIO.  For Unix, FileIO can be used instead of SocketIO.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18329>
_______________________________________


More information about the Python-bugs-list mailing list