MCPcopy Index your code
hub / github.com/git/git / fill_active_slots

Function fill_active_slots

http.c:1705–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703}
1704
1705void fill_active_slots(void)
1706{
1707 struct active_request_slot *slot = active_queue_head;
1708
1709 while (active_requests < max_requests) {
1710 struct fill_chain *fill;
1711 for (fill = fill_cfg; fill; fill = fill->next)
1712 if (fill->fill(fill->data))
1713 break;
1714
1715 if (!fill)
1716 break;
1717 }
1718
1719 while (slot != NULL) {
1720 if (!slot->in_use && slot->curl != NULL
1721 && curl_session_count > min_curl_sessions) {
1722 curl_easy_cleanup(slot->curl);
1723 slot->curl = NULL;
1724 curl_session_count--;
1725 }
1726 slot = slot->next;
1727 }
1728}
1729
1730void step_active_slots(void)
1731{

Callers 6

prefetchFunction · 0.85
step_active_slotsFunction · 0.85
release_active_slotFunction · 0.85
add_fetch_requestFunction · 0.85
add_send_requestFunction · 0.85
run_request_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected