curl_multi_remove_handle() don't block terminating c-ares requests 60/219160/1 accepted/tizen/base/20191208.221818 submit/tizen_base/20191204.120048
authorNiraj Kumar Goit <niraj.g@samsung.com>
Mon, 2 Dec 2019 15:13:52 +0000 (20:43 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Mon, 2 Dec 2019 15:13:52 +0000 (20:43 +0530)
commitd9c05d312c8ce252615efa0a62317f148e3fbec5
tree1eb1bdacc63f129fa7897e3a540390b0dccf06e5
parent8dfb92873af9de5d883e191e0097be32c78a7d0f
curl_multi_remove_handle() don't block terminating c-ares requests

Added Curl_resolver_kill() for all three resolver modes, which only
blocks when necessary, along with test 1592 to confirm
curl_multi_remove_handle() doesn't block unless it must.

Backported patch details:
https://github.com/curl/curl/commit/84a30d0a419ad95c53cbdfc76eb2eb75d2e51835

Change-Id: I40917dbf8262249250942c9dcb71a31e6cf0df90
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
lib/asyn-ares.c
lib/asyn-thread.c
lib/asyn.h
lib/multi.c
tests/data/Makefile.inc
tests/data/test1592 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1592.c [new file with mode: 0644]