Socket Question

Daniel Klein danielk at aracnet.com
Thu May 31 14:41:46 CEST 2001


On Thu, 31 May 2001 03:31:00 GMT, grante at visi.com (Grant Edwards) wrote:

>On Wed, 30 May 2001 19:11:57 -0700, Daniel Klein <danielk at aracnet.com> wrote:
>
>>I've been going thru the socket tutorial in Mark Lutz's PP2E
>>(great book btw). It appears that the buffer limit for recving
>>data is 1k.
>
>What type of sockets are you using?  TCP? UDP?

TCP

>>I tried recving more and it just truncates it. Is this a
>>function of sockets in general or is there some setting I can
>>tweak to force it to accept more?
>
>If you're using TCP, the size of the chunks you read may vary.
>You have to deal with the data stream being delivered in
>whatever size chunks please the intervening software and
>hardware (regardless of what size chunks with which it was
>written).

That's what I thought. Thanks.

Dan




More information about the Python-list mailing list