mirror of
https://gitee.com/openharmony/communication_netstack
synced 2024-11-23 06:50:46 +00:00
commit
564c417fd3
@ -398,7 +398,7 @@ bool HttpExec::GetCurlDataFromHandle(CURL *handle, RequestContext *context, CURL
|
||||
|
||||
double HttpExec::GetTimingFromCurl(CURL *handle, CURLINFO info)
|
||||
{
|
||||
time_t timing;
|
||||
curl_off_t timing;
|
||||
CURLcode result = curl_easy_getinfo(handle, info, &timing);
|
||||
if (result != CURLE_OK) {
|
||||
NETSTACK_LOGE("Failed to get timing: %{public}d, %{public}s", info, curl_easy_strerror(result));
|
||||
|
@ -613,7 +613,7 @@ bool HttpClientTask::ProcessResponseCode()
|
||||
|
||||
double HttpClientTask::GetTimingFromCurl(CURL *handle, CURLINFO info) const
|
||||
{
|
||||
time_t timing;
|
||||
curl_off_t timing;
|
||||
CURLcode result = curl_easy_getinfo(handle, info, &timing);
|
||||
if (result != CURLE_OK) {
|
||||
NETSTACK_LOGE("Failed to get timing: %{public}d, %{public}s", info, curl_easy_strerror(result));
|
||||
|
Loading…
Reference in New Issue
Block a user