]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_http_client.cc
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / rgw / rgw_http_client.cc
index 50fe7915099faf64d85e16bd526050a942e0c095..d0f0baead6e5f95622787459b1e42d20f6903ffd 100644 (file)
@@ -1141,7 +1141,8 @@ void *RGWHTTPManager::reqs_thread_entry()
        curl_easy_getinfo(e, CURLINFO_RESPONSE_CODE, (void **)&http_status);
 
        int status = rgw_http_error_to_errno(http_status);
-        if (result != CURLE_OK && http_status == 0) {
+        if (result != CURLE_OK && status == 0) {
+          dout(0) << "ERROR: curl error: " << curl_easy_strerror((CURLcode)result) << ", maybe network unstable" << dendl;
           status = -EAGAIN;
         }
         int id = req_data->id;