cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: unpausing an upload

From: Justin Karneges <justin_at_fanout.io>
Date: Tue, 23 Jul 2013 12:13:06 -0700

On Tue, Jul 23, 2013 at 11:26 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 23 Jul 2013, Justin Karneges wrote:
>
> I suggest a fix like the attached one, what do you think about it?
>>>
>>
>> Doesn't seem to work. I expect that my timer callback should get called
>> during curl_easy_pause() to set up a new timer? No call to my callback is
>> made. I sprinkled some debug prints into curl though and I see your
>> Curl_expire(.., 1) is getting called internally at least.
>>
>
> Right, with this fix applied, after unpausing you should call
> curl_multi_socket_action() with CURL_SOCKET_TIMEOUT. I rather not make the
> curl_easy_pause() function itself call the callbacks etc with updated info
> but defer that to curl_multi_socket_action() as that's more in the normal
> work flow. Chances are pretty big that the unpausing will get some transfer
> activity going anyway so we better leave that to the main driver function.
>
> Or what do you think?

Ah okay, in that case the patch does function properly for me. Thanks!

I'd still say this isn't very intuitive, but if you feel it is optimal to
defer the call then I have no objection.

-- 
Justin Karneges
Fanout, Inc.
530-220-7222

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-23