curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform in background thread and HTTPS

From: Johny Bravo via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 08 Sep 2017 17:44:46 +0200 (CEST)

But res_init is not part of CURL, so the app wont be transferable to other
platforms.

  ---------- Původní e-mail ----------
Od: Daniel Stenberg <daniel_at_haxx.se>
Komu: Johny Bravo via curl-library <curl-library_at_cool.haxx.se>
Datum: 8. 9. 2017 15:32:02
Předmět: Re: curl_multi_perform in background thread and HTTPS
"On Fri, 8 Sep 2017, Johny Bravo via curl-library wrote:

> I perform curl_multi_perform in a background thread of my GUI app. I am
> downloading data from HTTPS server. Usually, all is working, however after

> internet connection is lost and restored again, I receive CURLE_COULDNT_
> RESOLVE_HOST and no new download is ever started again (the server is OK -

> if I stop app and start it again, all is working again until the
connection
> lost)

That sounds like a name resolver problem. So maybe something needs to be
reset/reloaded when your internet connection has gone and come back.

If you try to call res_init() when you get CURLE_COULDNT_RESOLVE_HOST and
then
call curl again, does it make any difference?

-- 
/ daniel.haxx.se 
"

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-08