Skip to content

Commit c588c48

Browse files
authored
Increase timeout by 10 seconds for checking links (#52)
This has been reported as an issue multiple times where we flag alive urls as dead due to delayed response from the server.
1 parent 8fda01e commit c588c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown_checker/links/link_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def check_url_alive(urls: List[str]) -> List[str]:
102102
if "https://vscode.dev/redirect?url=" in url:
103103
continue
104104
try:
105-
response = requests.get(url, timeout=10)
105+
response = requests.get(url, timeout=20)
106106
if response.status_code != 200:
107107
broken_urls.append(url)
108108
except requests.exceptions.RequestException:

0 commit comments

Comments
 (0)