FIRE-5368, FIRE-5756, VWR-28039, VWR-28629; make Firestorm work with openssl 1.x.

Nicky 2012-03-28 23:48:49 +02:00
parent ecc3f3916e
commit eb0568c975
1 changed files with 9 additions and 0 deletions

View File

@ -320,6 +320,15 @@ LLCurl::Easy* LLCurl::Easy::getEasy()
CURLcode result = curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_DNS_CACHE_TIMEOUT, 0);
check_curl_code(result);
// <FS:ND> Disable SSL/TLS session caching. Some servers refuse to talk to us when session ids are enabled.
// id.secondlife.com is such a server, when greeted with a SSL HELLO and a session id, it immediatly returns a RST packet and closes
// the connections.
// Fixes: FIRE-5368, FIRE-5756, VWR-28039, VWR-28629
result = curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_SSL_SESSIONID_CACHE, 0);
check_curl_code(result);
// </FS:ND>
++gCurlEasyCount;
return easy;
}