Skip to content

Commit f3c019c

Browse files
committed
Use timeout=10 for probe() URL detection method
Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent 0135f97 commit f3c019c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bugzilla/_backendbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, url, bugzillasession):
2222
@staticmethod
2323
def probe(url):
2424
try:
25-
requests.head(url).raise_for_status()
25+
requests.head(url, timeout=10).raise_for_status()
2626
return True # pragma: no cover
2727
except Exception as e:
2828
log.debug("Failed to probe url=%s : %s", url, str(e))

0 commit comments

Comments
 (0)