Bug fix
curl_easy_setopt expects a long int. Before this patch, uninitialized memory was read, leading to extreme long time out, instead of the intended disabled time out (so, in practise this patch has little effect). This bug was discovered with the previous commit.
This commit is contained in:
@@ -250,7 +250,7 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip)
|
||||
|
||||
/* Setting the DNS cache timeout to -1 disables it completely.
|
||||
This might help with bug #503 */
|
||||
curlEasyRequest_w->setopt(CURLOPT_DNS_CACHE_TIMEOUT, -1);
|
||||
curlEasyRequest_w->setopt(CURLOPT_DNS_CACHE_TIMEOUT, -1L);
|
||||
|
||||
curlEasyRequest_w->addHeader("Content-Type: text/xml");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user