Commit d505fa3
fix: add retry adapter to requests.Session in batch_validate.py
Stale keep-alive connections in the pool can cause silent hangs when the
server closes an idle connection between trace validations. The retry
adapter (3 retries, 0.5s backoff) handles connection resets on POST
requests automatically, preventing delays mid-batch.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dc8b818 commit d505fa3
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| 211 | + | |
209 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
210 | 218 | | |
211 | 219 | | |
212 | 220 | | |
| |||
0 commit comments