]> granicus.if.org Git - curl/commit
curl_multi_remove_handle() don't block terminating c-ares requests
authorBrad Spencer <bspencer@blackberry.com>
Fri, 14 Dec 2018 21:18:22 +0000 (17:18 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Jan 2019 09:05:20 +0000 (10:05 +0100)
commit84a30d0a419ad95c53cbdfc76eb2eb75d2e51835
tree5a7c04df819a465e7711f9c9b0c831f5532b0326
parentebe658c1e5a6577178981a7f406794699305be5c
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.

Closes #3428
Fixes #3371
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]