cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Help w/ HTTP file upload [bug?]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 15 Dec 2009 22:44:09 +0100 (CET)

On Tue, 15 Dec 2009, Ryan M. Lederman wrote:

Please don't top-post! (see the etiquette link)

> After doing some debugging, it seems like even defining USE_BLOCKING_SOCKETS
> is not causing a synchronous call to send() to occur.

That's just some old rubbish remainders from past experiments. You can't do
anything in libcurl with blocking sockets, but then I also don't see how that
is a concern of yours. That's not where your problem lies.

> If I do some debug output when doing HTTP form-based uploading, my callback
> gets called all the way from 0% to 100% in about 2msec. It THEN is called
> at one second intervals *at 100% every time.*

The times aren't very interesting, but the sizes are. The question is why.

Can you produce an example code for us that repeats this problem?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-15