Skip to content

Commit 529bed1

Browse files
committed
Api lyrics setup timeout from 10 to 30 sec - #636
1 parent f19338f commit 529bed1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def setup_lyrics_api_analyze():
709709
ctx = None
710710
import time as _time
711711
_t0 = _time.monotonic()
712-
with urllib.request.urlopen(req, timeout=10, context=ctx) as resp:
712+
with urllib.request.urlopen(req, timeout=30, context=ctx) as resp:
713713
raw_bytes = resp.read(512 * 1024)
714714
elapsed_ms = (_time.monotonic() - _t0) * 1000
715715
raw_text = raw_bytes.decode('utf-8', errors='replace')

0 commit comments

Comments
 (0)