curl_multi_cleanup man page

curl_multi_cleanup ā€” close down a multi session


#include <curl/curl.h>

CURLMcode curl_multi_cleanup( CURLM *multi_handle );


Cleans up and removes a whole multi stack. It does not free or touch any individual easy handles in any way - they still need to be closed individually, using the usual curl_easy_cleanup(3) way. The order of cleaning up should be:

1 - curl_multi_remove_handle(3) before any easy handles are cleaned up

2 - curl_easy_cleanup(3) can now be called independently since the easy handle is no longer connected to the multi handle

3 - curl_multi_cleanup(3) should be called when all easy handles are removed

Return Value

CURLMcode type, general libcurl multi interface error code. On success, CURLM_OK is returned.

See Also


Referenced By

curl_easy_cleanup(3), curl_multi_add_handle(3), curl_multi_fdset(3), curl_multi_info_read(3), curl_multi_init(3), curl_multi_perform(3), curl_multi_remove_handle(3), curl_multi_setopt(3), curl_multi_socket(3), curl_multi_socket_action(3), libcurl-multi(3).

February 03, 2016 libcurl 7.55.1 libcurl Manual