lib/curl/Global: ignore curl_multi_socket_action() errors
Keep the logging library out of this low-level libcurl wrapper.
This commit is contained in:
@@ -29,16 +29,11 @@
|
|||||||
|
|
||||||
#include "Global.hxx"
|
#include "Global.hxx"
|
||||||
#include "Request.hxx"
|
#include "Request.hxx"
|
||||||
#include "Log.hxx"
|
|
||||||
#include "event/Loop.hxx"
|
#include "event/Loop.hxx"
|
||||||
#include "event/SocketEvent.hxx"
|
#include "event/SocketEvent.hxx"
|
||||||
#include "util/RuntimeError.hxx"
|
|
||||||
#include "util/Domain.hxx"
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
static constexpr Domain curlm_domain("curlm");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Monitor for one socket created by CURL.
|
* Monitor for one socket created by CURL.
|
||||||
*/
|
*/
|
||||||
@@ -208,10 +203,7 @@ CurlGlobal::SocketAction(curl_socket_t fd, int ev_bitmask) noexcept
|
|||||||
int running_handles;
|
int running_handles;
|
||||||
CURLMcode mcode = curl_multi_socket_action(multi.Get(), fd, ev_bitmask,
|
CURLMcode mcode = curl_multi_socket_action(multi.Get(), fd, ev_bitmask,
|
||||||
&running_handles);
|
&running_handles);
|
||||||
if (mcode != CURLM_OK)
|
(void)mcode;
|
||||||
FormatError(curlm_domain,
|
|
||||||
"curl_multi_socket_action() failed: %s",
|
|
||||||
curl_multi_strerror(mcode));
|
|
||||||
|
|
||||||
defer_read_info.Schedule();
|
defer_read_info.Schedule();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user