Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use configured timeout value when requesting robots.txt files. #634

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuckbjones
Copy link
Contributor

When a remote server is not responding, we have 2 issues.

  1. The request for robots.txt takes a long time to fail.
  2. When it does fail, requests.exceptions.Timeout is not thrown. Instead we get a requests.exceptions.RequestException, which does not abort the link check. So we still have to wait for the link check to timeout before moving on.

This patch uses the configured timeout value for robots.txt requests, which will throw requests.exceptions.Timeout and abort the current link check if the remote host does not respond after the timeout .

@anarcat
Copy link

anarcat commented Jan 31, 2017

please reroll this PR in the new organisation here: https://github.com/linkcheck/linkchecker/pulls see #686 for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants