From c4fc897b38c0d4a9cfb4b766026c7a9d632bbf1e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 25 Apr 2008 23:54:02 +0000 Subject: [PATCH] steal some curl configuration options from rtorrent :) --- libtransmission/web.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtransmission/web.c b/libtransmission/web.c index efbedfb92..2261b09fe 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -137,6 +137,12 @@ addTask( void * vtask ) curl_easy_setopt( ch, CURLOPT_WRITEDATA, task ); curl_easy_setopt( ch, CURLOPT_USERAGENT, TR_NAME "/" LONG_VERSION_STRING ); curl_easy_setopt( ch, CURLOPT_SSL_VERIFYPEER, 0 ); + curl_easy_setopt( ch, CURLOPT_FORBID_REUSE, 1 ); + curl_easy_setopt( ch, CURLOPT_NOSIGNAL, 1 ); + curl_easy_setopt( ch, CURLOPT_FOLLOWLOCATION, 1 ); + curl_easy_setopt( ch, CURLOPT_MAXREDIRS, 5 ); + curl_easy_setopt( ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); + curl_easy_setopt( ch, CURLOPT_ENCODING, "" ); curl_multi_add_handle( web->cm, ch ); pump( web );