[PATCH] use pycurl only when engine initializable

Martin Pool mbp at sourcefrog.net
Thu Apr 27 06:55:48 BST 2006


On 24 Apr 2006, Alexander Belchenko <bialix at ukr.net> wrote:
> 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.

Fair enough - merged, with a comment pointing to this.

Thanks,
-- 
Martin




More information about the bazaar mailing list