| 334 | } |
| 335 | |
| 336 | static void finish_active_slot(struct active_request_slot *slot) |
| 337 | { |
| 338 | closedown_active_slot(slot); |
| 339 | curl_easy_getinfo(slot->curl, CURLINFO_HTTP_CODE, &slot->http_code); |
| 340 | |
| 341 | if (slot->finished) |
| 342 | (*slot->finished) = 1; |
| 343 | |
| 344 | /* Store slot results so they can be read after the slot is reused */ |
| 345 | if (slot->results) { |
| 346 | slot->results->curl_result = slot->curl_result; |
| 347 | slot->results->http_code = slot->http_code; |
| 348 | curl_easy_getinfo(slot->curl, CURLINFO_HTTPAUTH_AVAIL, |
| 349 | &slot->results->auth_avail); |
| 350 | |
| 351 | curl_easy_getinfo(slot->curl, CURLINFO_HTTP_CONNECTCODE, |
| 352 | &slot->results->http_connectcode); |
| 353 | } |
| 354 | |
| 355 | /* Run callback if appropriate */ |
| 356 | if (slot->callback_func) |
| 357 | slot->callback_func(slot->callback_data); |
| 358 | } |
| 359 | |
| 360 | static void xmulti_remove_handle(struct active_request_slot *slot) |
| 361 | { |
no test coverage detected