Skip to content

Commit bdefc0f

Browse files
committed
Update find_missing_docs_links.py
1 parent 759b4b1 commit bdefc0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/find_missing_docs_links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ async def check_http_link(session, src_file, line_num, link, errors):
129129
num_tries = 1
130130
while True:
131131
try:
132-
async with session.get(link, timeout=4) as resp:
132+
async with session.get(link, timeout=5) as resp:
133133
if resp.status != 200:
134134
errors.append(
135135
err_str(src_file, line_num, link, f"http response code {resp.status}")
136136
)
137137
return
138138
except asyncio.TimeoutError:
139-
if num_tries > 1:
139+
if num_tries > 2:
140140
errors.append(err_str(src_file, line_num, link, "http timeout"))
141141
return
142142
num_tries += 1

0 commit comments

Comments
 (0)