| 1661 | } |
| 1662 | |
| 1663 | int start_active_slot(struct active_request_slot *slot) |
| 1664 | { |
| 1665 | CURLMcode curlm_result = curl_multi_add_handle(curlm, slot->curl); |
| 1666 | int num_transfers; |
| 1667 | |
| 1668 | if (curlm_result != CURLM_OK && |
| 1669 | curlm_result != CURLM_CALL_MULTI_PERFORM) { |
| 1670 | warning("curl_multi_add_handle failed: %s", |
| 1671 | curl_multi_strerror(curlm_result)); |
| 1672 | active_requests--; |
| 1673 | slot->in_use = 0; |
| 1674 | return 0; |
| 1675 | } |
| 1676 | |
| 1677 | /* |
| 1678 | * We know there must be something to do, since we just added |
| 1679 | * something. |
| 1680 | */ |
| 1681 | curl_multi_perform(curlm, &num_transfers); |
| 1682 | return 1; |
| 1683 | } |
| 1684 | |
| 1685 | struct fill_chain { |
| 1686 | void *data; |
no test coverage detected