On 02/28/2012 03:32 PM, Thomas Rast wrote: > Nelson Benitez Leon <nelsonjesus.benitez@xxxxxxxxxxxxxx> writes: > >> - if (curl_http_proxy) >> + if (curl_http_proxy) { >> curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy); >> + curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY); >> + } > > There was another attempt at doing the same very recently: > > http://thread.gmane.org/gmane.comp.version-control.git/191140 > > I could swear there was a second one, but apparently that was you. > Neither you nor Marco submitter have so far answered the question I > raised in > > http://thread.gmane.org/gmane.comp.version-control.git/191155 > > which can be summarized as: please make a case -- and put it in the > message! -- for or against making this configurable. Is there a speed > tradeoff? (However, you could steal some of Daniel Stenberg's > reasoning!) I don't see any reason to make this configurable, CuRL people made this cool CURLAUTH_ANY option that automatically chooses the best auth method from among those the server supports, that means you don't have to investigate if your proxy is using Basic, Digest or NTLM methods, and use a specific curl option for each of them, instead curl will ask the proxy and use the appropiate, and it will only do that if you are using a proxy (i.e. you've set CURLOPT_PROXY or you have http_proxy env var), also curl will not try to authenticate if you've not provided username or password in the proxy string, as I've been told here[1].. so, setting CURLOPT_PROXYAUTH = CURLAUTH_ANY will not affect the speed of normal curl use, only if 1) you are using a proxy and 2) your proxy requires authentication, only then curl will just make two or three roundtrips to find out the auth method the proxy is using, that is a tiny cost compared to having the user find out the proxy auth type and set an specifically config option to enable that type. So I would call CURLAUTH_ANY as out-of-the-box proxy support, and I don't want it activated from a config option, I want it to still be out-of-the-box in git also.. [1] https://bugzilla.redhat.com/show_bug.cgi?id=769254#c6 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html