cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mixing curl_easy_pause and curl_multi_socket_action

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 3 Apr 2016 23:36:01 +0200 (CEST)

On Tue, 29 Mar 2016, Daniel Eggert wrote:

> I'm using curl_multi_socket_action(). Within the CURLOPT_HEADERFUNCTION I'm
> pausing the easy handle -- I need to asynchronously ask client code if the
> transfer should complete.
>
> But after the curl_multi_socket_action() I'm getting a callback to my
> CURLMOPT_SOCKETFUNCTION and when I call curl_multi_socket_action() it tells
> me that the easy handle completed with CURLE_RECV_ERROR.

Thanks for this report!

Any chance you can write up a small code snippet we can use to reproduce the
problem? And when doing so, please file this as an issue at
https://github.com/curl/curl/issues ? It makes it less likely that it slips
trough the net and get forgotten.

> Should I simply remove it from the multi handle and re-add it once I'm ready
> to resume?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-03