From 50489570e5d0843c7ada6b4ac7f01f7594db78dd Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 12 Mar 2013 12:56:01 -0700 Subject: rgw: set up curl with CURL_NOSIGNAL Fixes: #4425 Backport: bobtail Apparently, libcurl needs that in order to be thread safe. Side effect is that if libcurl is not compiled with c-ares support, domain name lookups are not going to time out. Issue affected keystone. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_http_client.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_http_client.cc b/src/rgw/rgw_http_client.cc index 4c7b99c17c3..f9e5a8260fc 100644 --- a/src/rgw/rgw_http_client.cc +++ b/src/rgw/rgw_http_client.cc @@ -54,6 +54,7 @@ int RGWHTTPClient::process(const string& url) curl_easy_setopt(curl_handle, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L); + curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, read_http_header); curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, (void *)this); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, read_http_data); -- cgit v1.2.1