Remove AICurlInterface::strerror

This commit is contained in:
Aleric Inglewood
2012-11-01 02:04:40 +01:00
parent c0ac428179
commit 756aac1f9a
3 changed files with 2 additions and 15 deletions

View File

@@ -422,17 +422,9 @@ void setCAPath(std::string const& path)
CertificateAuthority_w->path = path;
}
// THREAD-SAFE
std::string strerror(CURLcode errorcode)
{
// libcurl is thread safe, no locking needed.
return curl_easy_strerror(errorcode);
}
} // namespace AICurlInterface
//==================================================================================
//==================================================================================
// Local implementation.
//

View File

@@ -145,11 +145,6 @@ void startCurlThread(U32 CurlConcurrentConnections, bool NoVerifySSLCert);
// with purpose to stop curl threads, free curl resources and deinitialize curl.
void cleanupCurl(void);
// Called from indra/llmessage/llurlrequest.cpp to print debug output regarding
// an error code returned by EasyRequest::getResult.
// Just returns curl_easy_strerror(errorcode).
std::string strerror(CURLcode errorcode);
// Called from indra/newview/llfloaterabout.cpp for the About floater, and
// from newview/llappviewer.cpp in behalf of debug output.
// Just returns curl_version().

View File

@@ -2089,8 +2089,8 @@ void CurlResponderBuffer::processOutput(AICurlEasyRequest_wat& curl_easy_request
}
else
{
responseCode = 499;
responseReason = AICurlInterface::strerror(code);
responseCode = HTTP_INTERNAL_ERROR;
responseReason = curl_easy_strerror(code);
curl_easy_request_w->setopt(CURLOPT_FRESH_CONNECT, TRUE);
}