curl-library
Clarification on CURLOPT_WRITEFUNCTION behaviour
Date: Fri, 01 Oct 2010 12:15:00 +0800
Hello All,
I was hoping for some clarification regarding write function behaviour
in libcurl.
The documentation implies a write function may be called multiple times
while receiving a reply. Initially in my application it never seemed to
be called more than once. In some circumstances buggy behaviour was
being exhibited in my application and during testing it seemed the only
likely conclusion was that the write function was getting called
multiple times during a reply.
Initially I thought this was because a proxy was converting the reply
into a chunked http reply and thus being called several times. I've
since read on the mailing list archives (ref.
http://curl.haxx.se/mail/lib-2009-06/0358.html) that libcurl "decodes"
chunked http and reassembles only performing one call to libcurl's write
function.
I would like to know more clearly under what circumstances it's possible
for libcurl's write function to be called more than once during a reply.
Would it be possible the libcurl write function may be called multiple
times in the case of a congested network or in a high latency case?
-- Chris K. chrisk_at_dugeo.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-10-01