curl-library
Re: Recovering from dropped connections with multi curl
Date: Mon, 3 Apr 2017 19:49:30 +0100
Hi Daniel,
Thank you for the explanation.
There is one further question I could ask you. If we look at the
multi-uv example -- using the method of events on socket file descriptors:
https://curl.haxx.se/libcurl/c/multi-uv.html
When this statement comes to pass in program execution:
uv_run(loop, UV_RUN_DEFAULT);
why does the libcurl only do one iteration of the transfer of the CURLM*
handle? Namely, you have set up all the easy handles and add them to the
CURLM* handle again everytime.
If you try running this program and comment out these instructions:
curl_multi_remove_handle(curl_handle, easy_handle);
curl_easy_cleanup(easy_handle);
then you would expect that upon calling the CURLM* handle it reuses the
original easy handles and does the same transfer again. But this is not
what is happening. The point is I would like to reuse the easy handles
and not have to re-establish them everytime.
-doa379
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-03