[ python-Bugs-1103350 ] send/recv SEGMENT_SIZE should be used more in socketmodule

SourceForge.net noreply at sourceforge.net
Thu Mar 3 18:17:15 CET 2005


Bugs item #1103350, was opened at 2005-01-16 16:01
Message generated for change (Comment added) made by irmen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1103350&group_id=5470

Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Irmen de Jong (irmen)
Assigned to: Nobody/Anonymous (nobody)
Summary: send/recv SEGMENT_SIZE should be used more in socketmodule

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Irmen de Jong (irmen)
Date: 2005-03-03 18:17

Message:
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)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1103350&group_id=5470


More information about the Python-bugs-list mailing list