-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C4CurlSystem: Unset CURLMOPT_SOCKETFUNCTION and CURLMOPT_TIMERFUNCTIO…
…N before calling curl_multi_cleanup curl_multi_cleanup may call the socket function with an internal easy handle, which will then attempt to insert that handle into the map. However, at that point the map has already been destroyed, as curl_multi_cleanup is called from the destructor of C4CurlSystem's multiHandle member. As we don't want to know about that extra handle at this stage anyway, we ensure that all user callbacks are reset to their default (nullptr) before curl_multi_cleanup is called.
- Loading branch information
Showing
2 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters