Honor urllib.proxy_bypass() when ignoring proxy settings

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3583 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2007-10-23 22:56:44 +00:00
parent 079671dbc0
commit e9c973fe06
3 changed files with 11 additions and 4 deletions

View file

@ -20,6 +20,13 @@
Type: bugfix
Changed: linkcheck/logger/html.py
* Honor urllib.proxy_bypass() when ignoring proxy settings.
This only affected Windows systems, since on other platforms
the proxy_bypass() function always return False (on Python <= 2.5
that is).
Type: bugfix
Changed: linkcheck/checker/proxysupport.py
4.7 "300" (released 17.6.2007)
* Mention in the documentation that --anchors enables logging of

6
TODO
View file

@ -1,10 +1,8 @@
- [BUG REPORT] Running on Windows XP with threads and a local Apache Server
- [BUG REPORT] Running on Windows XP with threads and a local HTTP Server
yields a lot of (10061 'Connection Refused') errors. Without threads (-t0)
gets rid of these errors. What is wrong here?
gets rid of these errors. Is it the server?
System: WinXP, linkchecker SVN r3579
- [BUGFIX] Honor urllib.proxy_bypass() result.
- [BUG REPORT]
Error: (54, 'Connection reset by peer')
Happens with http 1.1 keep-alive, disappears when activating debug mode.

View file

@ -63,6 +63,8 @@ class ProxySupport (object):
"""
Check if self.host is in the no-proxy-for ignore list.
"""
if urllib.proxy_bypass(self.host):
return True
for ro in self.aggregate.config["noproxyfor"]:
if ro.search(self.host):
return True