• Max Kellermann's avatar
    lib/curl/Request: move exception handling out of the WRITEFUNCTION · 4297a7b0
    Max Kellermann authored
    libcurl's WRITEFUNCTION is pretty fragile; if we destroy the CURL*
    instance or even unregister it using curl_multi_remove_handle(),
    libcurl will crash instantly.  But still we need to be able to handle
    exceptions from inside the WRITEFUNCTION, and call
    CurlResponseHandler::OnError(), which may destroy the whole thing.  As
    a workaround, I use DeferredMonitor to postpone the OnError() call
    into a stack frame which is allowed to destroy the request.
    4297a7b0
Name
Last commit
Last update
..
curl Loading commit data...
expat Loading commit data...
ffmpeg Loading commit data...
icu Loading commit data...
nfs Loading commit data...
pulse Loading commit data...
smbclient Loading commit data...
sqlite Loading commit data...
upnp Loading commit data...
xiph Loading commit data...
zlib Loading commit data...