mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Use Curl_easy_addmulti() to clear associations from easy handles to multi
handles. Include multi.h to get proto.
This commit is contained in:
parent
3ac00f32af
commit
065e466f1a
@ -44,6 +44,7 @@
|
|||||||
#include "progress.h"
|
#include "progress.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "easy.h"
|
#include "easy.h"
|
||||||
|
#include "multi.h"
|
||||||
|
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
@ -210,6 +211,8 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
|
|||||||
|
|
||||||
/* clear out the usage of the shared DNS cache */
|
/* clear out the usage of the shared DNS cache */
|
||||||
easy->easy_handle->hostcache = NULL;
|
easy->easy_handle->hostcache = NULL;
|
||||||
|
Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association
|
||||||
|
to this multi handle */
|
||||||
|
|
||||||
/* make the previous node point to our next */
|
/* make the previous node point to our next */
|
||||||
if(easy->prev)
|
if(easy->prev)
|
||||||
@ -610,7 +613,7 @@ CURLMcode curl_multi_cleanup(CURLM *multi_handle)
|
|||||||
nexteasy=easy->next;
|
nexteasy=easy->next;
|
||||||
/* clear out the usage of the shared DNS cache */
|
/* clear out the usage of the shared DNS cache */
|
||||||
easy->easy_handle->hostcache = NULL;
|
easy->easy_handle->hostcache = NULL;
|
||||||
easy->easy_handle->multi = NULL;
|
Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association */
|
||||||
|
|
||||||
if (easy->msg)
|
if (easy->msg)
|
||||||
free(easy->msg);
|
free(easy->msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user