mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-12 02:20:58 +00:00
Add missing reset of self.reused_connection flag
This commit is contained in:
parent
ba160350dd
commit
6024f2e43e
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
|
|||
self.cookies = []
|
||||
# temporary data filled when reading redirections
|
||||
self._data = None
|
||||
# flag indicating connection reuse
|
||||
self.reused_connection = False
|
||||
|
||||
def allows_robots (self, url):
|
||||
"""
|
||||
|
|
@ -551,6 +553,7 @@ Use URL `%(newurl)s' instead for checking.""") % {
|
|||
conn = self.aggregate.connections.get(key)
|
||||
if conn is not None:
|
||||
log.debug(LOG_CHECK, "reuse cached HTTP(S) connection %s", conn)
|
||||
self.reused_connection = True
|
||||
return conn
|
||||
self.aggregate.connections.wait_for_host(host)
|
||||
if scheme == "http":
|
||||
|
|
|
|||
Loading…
Reference in a new issue