curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems w/ pausing & unpausing HTTP connections

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Mar 2018 23:18:58 +0100 (CET)

On Mon, 12 Mar 2018, Philip Prindeville wrote:

> Problem is that weird things seem to happen if you’re able to unpause your
> Curl handle in the timer callback, then that causes the write callback to
> fire immediately (before the timer callback has even completed).

This behavior is documented in the curl_easy_pause man page:

   When this function is called to unpause reading, the chance is high that you
   will get your write callback called before this function returns.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-13