Message47558
This patch is a first take at adding a recvall method
to the socket object, to mirror the existence of the
sendall method.
If the MSG_WAITALL flag is available, the recvall
method just calls recv() with that flag.
If it is not available, it uses an internal loop
(during the loop, threads are allowed, so this improves
concurrency).
Having this method makes Python code much simpler;
before you had to test for MSG_WAITALL yourself and
write your own loop in Python if the flag is not there
(on Windows for instance).
(also, having the loop in C improves performance and
concurrency compared to the same loop in Python)
Note: the patch hasn't been tested very well yet.
(code is based on a separate extension module found
here: http://www.it-ernst.de/python/ ) |
|
Date |
User |
Action |
Args |
2007-08-23 15:41:21 | admin | link | issue1103213 messages |
2007-08-23 15:41:21 | admin | create | |
|