curl-library
Re: Sending concurrent requests with single libcurl handle
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Sep 2017 13:50:47 +0200 (CEST)
Date: Wed, 20 Sep 2017 13:50:47 +0200 (CEST)
On Wed, 20 Sep 2017, ViDyAnAnD NiLLe wrote:
> How can i reuse same easyhandle instead of cleaning it up? I tried to call
> curl_easy_reset and then add it back to multihandle with different URL but
> its crashing.
That's how you do it, and it isn't supposed to crash. If you run a recent
libcurl version I'd encourage you to produce a reproducible example and file a
bug.
This said, when you use the multi interface, you don't save very much by
re-using easy handles (mostly memory handling) so killing the old handle and
creating a new one to add is not a very bad work-around.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-09-20