curl-library
Aborting curl request when SIGTERM received
From: Prashant Shubham via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 2 Apr 2019 15:39:14 +0530
Date: Tue, 2 Apr 2019 15:39:14 +0530
Hi All,
If there is an ongoing curl request and the application receives
SIGTERM, is there a way curl can acknowledge and abort the request in
middle. I tried using
curl_global_init(CURL_GLOBAL_ACK_EINTR);
but request doesn't abort until timeout happens. I am using
`curl_easy` does it causes any difference as I couldn't find anything
here: https://curl.haxx.se/libcurl/c/libcurl.html#GLOBAL
Can you please guide me, what am I missing here?
Thanks,
Prashant
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-04-02