curl-library
Re: Received bytes less than MTU
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 6 Aug 2009 15:59:43 +0200 (CEST)
Date: Thu, 6 Aug 2009 15:59:43 +0200 (CEST)
On Thu, 6 Aug 2009, centrio_at_gmail.com wrote:
> I am wrote a program that continuously pull data from a server in a while
> loop. If i continuosly do 'curl mutli perform' , i see a series of chunks of
> data size 1448. I learnt this to be MTU size from this forum.
>
> And if in between, if i receive bytes less than this 1448(MTU), does it
> mean, the server doesn't have enough bytes atleast to fill up MTU size? (The
> server is push based media server.)
That's one likely reason, yes. libcurl does nothing magic with the MTU or what
sizes that will be used on the network, it simply calls recv() to receive up
to 16K in each invoke. If it gets less the OS decided to give it less.
-- / daniel.haxx.seReceived on 2009-08-06