socketmodule.c contains a SEGMENT_SIZE define that is used to limit the send/recv buffer size on VMS. But IMO there are two problems: 1) it should also be used on windows, because windows doesn't like a large send/recv buffer either, 2) it should be used in more places: at least sendall, but perhaps also recvfrom, sendto ad 1: see also this bug: http://www.python.org/sf/853507
Logged In: YES user_id=129426 Btw: I'm not too experienced with Win32 programming and so I don't have a very good argumentation for the buffer size issue on this platform. If there is somebody with better understanding of the issues involved here, please advise. (it's just empirical knowledge that I have that leads me to believe that win32's tcp implementation suffers from similar recv/send size problems as VMS does-- for which a special case was made in the code)