Re: Aborting curl request when SIGTERM received

2019-04-03 Thread Prashant Shubham via curl-library
On 4/2/19, Dan Fandrich via curl-library wrote: > On Tue, Apr 02, 2019 at 03:39:14PM +0530, Prashant Shubham via curl-library > wrote: >> 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. > > The mos

Re: Aborting curl request when SIGTERM received

2019-04-02 Thread Dan Fandrich via curl-library
On Tue, Apr 02, 2019 at 03:39:14PM +0530, Prashant Shubham via curl-library wrote: > 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. The most reliable way to do this is probably to write a SIGTERM h

Aborting curl request when SIGTERM received

2019-04-02 Thread Prashant Shubham via curl-library
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