mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:33:33 +03:00
async-thrdd: use thread queue for resolving
Use a thread queue and pool for asnyc threaded DNS resolves. Add pytest test_21_* for verification. Add `CURLMOPT_RESOLVE_THREADS_MAX` to allow applications to resize the thread pool used. Add `CURLMOPT_QUICK_EXIT` to allow applications to skip thread joins when cleaning up a multi handle. Multi handles in `curl_easy_perform()` inherit this from `CURLOPT_QUICK_EXIT`. Add several debug environment variables for testing. Closes #20936
This commit is contained in:
parent
507e7be573
commit
39036c9021
31 changed files with 998 additions and 614 deletions
|
|
@ -103,6 +103,12 @@ void Curl_thrdq_clear(struct curl_thrdq *tqueue,
|
|||
CURLcode Curl_thrdq_await_done(struct curl_thrdq *tqueue,
|
||||
uint32_t timeout_ms);
|
||||
|
||||
CURLcode Curl_thrdq_set_props(struct curl_thrdq *tqueue,
|
||||
uint32_t max_len, /* 0 for unlimited */
|
||||
uint32_t min_threads,
|
||||
uint32_t max_threads,
|
||||
uint32_t idle_time_ms);
|
||||
|
||||
#ifdef CURLVERBOSE
|
||||
void Curl_thrdq_trace(struct curl_thrdq *tqueue,
|
||||
struct Curl_easy *data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue