| 1703 | } |
| 1704 | |
| 1705 | void 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 | |
| 1730 | void step_active_slots(void) |
| 1731 | { |
no outgoing calls
no test coverage detected