MCPcopy Create free account
hub / github.com/git/git / finish_active_slot

Function finish_active_slot

http.c:336–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336static 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
360static void xmulti_remove_handle(struct active_request_slot *slot)
361{

Callers 1

process_curl_messagesFunction · 0.85

Calls 1

closedown_active_slotFunction · 0.85

Tested by

no test coverage detected