cURL / Mailing Lists / curl-library / Single Mail

curl-library

IGNORE EARLIER NOTE, was RE: known problem with write progress callback?

From: Max L. Eidswick <max_at_eidswick.com>
Date: Wed, 30 Jan 2008 13:04:03 -0700

IGNORE THIS EARLIER MESSAGE -- this was an unexpected exit in our PHP script that was unexpectedly picked up by the progress
callback. No idea why, but when I turned the write call back on the problem went away.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Brian Dessent
Sent: Wednesday, January 30, 2008 7:20 AM
To: libcurl development
Subject: Re: known problem with write progress callback?

"Max L. Eidswick" wrote:

> printf (
> "\rCall count: %d, dltotal: %ld, dlnow: %ld, ultotal: %ld,"
> "ulnow: %ld",
> ++ulCallCount, dltotal, dlnow, ultotal, ulnow ) ;

You can't use %ld to print a double.

Brian

Does the callback always get an output of 'Success'? The 'Success' at the end of the upload seems to be coming from libcurl ...

Max

---- snip

Uploading now:
call#84, dltotal: 0, dlnow: 0, ultotal: 1338672,ulnow: 1338624Success
libcurl sendfile time: 14469 msecs

 ----- End of test of libcurl sendfile ----- Press any key to exit.

IGNORE THIS EARLIER NOTE: "Success" was coming from a PHP exit statement on the server side.
Received on 2008-01-30