Up timeout to 5s

This commit is contained in:
Juhani Krekelä 2018-10-22 05:50:48 +03:00
parent 179ff85f4c
commit ff2b384579
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ def handle_message(*, prefix, message, nick, channel, irc):
if possible_titles_left == 0: break
try:
with urllib.request.urlopen(url, timeout = 1) as response:
with urllib.request.urlopen(url, timeout = 5) as response:
if response.info().get_content_type() == 'text/html':
# First 4KiB of a page should be enough for any <title>
# Turns out it's not, so download 64KiB