• 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
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
python/build Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...