cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: write callback issues (was Re: A new problem)

From: Michal Marek <mmarek_at_suse.cz>
Date: Tue, 08 Apr 2008 11:30:55 +0200

Prasad J Pandit wrote:
> On Tue, 8 Apr 2008, Daniel Stenberg wrote:
>> libcurl uses recv() to read data from the socket and it will read as much as
>> the OS delivers and then it sends that to the callback as it won't wait for
>> more before it does this.
>
> In that case, could the trailing new-lines cause my problem?
>
>> If you think the recv() call returns too little data you should perhaps debug
>> your IP stack or look to what network setup changes you can do to iprove
>> things.
>
> I don't see any reason why I should do that; Considering I'm using
> libcurl(as instructed) to do the POST request, and just expect/want the
> proper reply back, that's all.

But you can't expect that it will come in one shot.

Michal
Received on 2008-04-08