mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
Adds a "meta_hash" to each easy handle for keeping special data during operations. All meta data set needs to add its destructor callback, so that meta data gets destroyed properly when the easy handle is cleaned up or reset. Add data->master_mid for "sub" transfers that belong to a "master" easy handle. When a "sub" transfer is done, the corresponding "master" can add a callback to be invoked. Used in DoH name resolution. DoH: use easy meta hash to add internal structs for DoH name resolution. One in each in each probe easy handle. When probes are done, response data is copied from the probe to the initiating easy. This allows DoH using transfers and their probes to be cleaned up in any sequence correctly. Fold DoH cleanup into the Curl_async_shutdown() and Curl_async_destroy() functions. Closes #16384