[PATCH] use pycurl only when engine initializable

Alexander Belchenko bialix at ukr.net
Mon Apr 24 13:09:24 BST 2006


Alexander Belchenko пишет:
> Martin Pool пишет:
>>
>> On 24/04/2006, at 6:54 PM, Alexander Belchenko wrote:
>>
>>> On my windows machine pycurl usable only when I'm have actual Internet
>>> connection. When I'm offline any attempt to use pycurl raise error:
> 
>> If it's really always going to fail then that looks like a reasonable 
>> fix.  Do you know why it fails?  Is it trying to do a DNS lookup perhaps?
> 
> Document Known Bugs #32:
> 
> http://curl.haxx.se/docs/knownbugs.html
> 
> 32. (At least on Windows) If libcurl is built with c-ares and there's no 
> DNS
>   server configured in the system, the ares_init() call fails and thus
>   curl_easy_init() fails as well. This causes weird effects for people 
> who use
>   numerical IP addresses only.

Well, I'm uninstall pycurl with ssl+ares+zlib and install basic pycurl
library. And now pycurl works OK without internet connection. So, my
next question: is for bzr windows distributive I need to use basic
pycurl or full pycurl+ssl+ares+zlib?

--
Alexander





More information about the bazaar mailing list