Commit 09a488b
committed
fix(httpserver,router): defensive group_request_id init; reorder is_aborted skip
- httpserver: initialize group_request_id=None so the ValueError except
handler does not hit UnboundLocalError when the oversized-prompt guard
raises before alloc_req_id.
- router: move the is_aborted skip after on_request_completed so aborted
reqs still update completion stats, but do not pollute the router_statics
EMA with their truncated output_len.1 parent 9b86761 commit 09a488b
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 350 | | |
355 | 351 | | |
356 | 352 | | |
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
0 commit comments