Commit fdcad07
fix: add timeout=30 to requests.get() in futurerate.py and octopus.py to prevent silent TCP stalls from hanging the main loop indefinitely
Fixes #4525 - a stalled Nord Pool connection would block the main prediction
loop forever. With timeout=30, the existing exception handler will catch
requests.exceptions.Timeout and fall back to cached rates via the existing
retry logic.
Also adds timeout to octopus.py download_octopus_free_func() which had the
same pattern.
Co-authored-by: springfall2008 <48591903+springfall2008@users.noreply.github.com>1 parent 075f152 commit fdcad07
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
2069 | | - | |
| 2069 | + | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| |||
0 commit comments