[PATCH] use pycurl only when engine initializable

Alexander Belchenko bialix at ukr.net
Mon Apr 24 11:55:59 BST 2006


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.


--
Alexander





More information about the bazaar mailing list