Repository navigation
Commit 768c511
fix(network-proxy): let proxied connections die with their request
The proxy agents were built with keepAlive, which retains an idle connection
after each request. The client's default handler is NodeHttp2Handler with
disableConcurrentStreams: true, so before this handler existed every request
got an isolated HTTP/2 session that was destroyed on stream close, and nothing
outlived it.
IEmbedder has no disposal contract to reclaim a pooled connection, so drop the
option rather than add a cleanup path with no call site. This also matches
src/api/providers/bedrock.ts, which passes no agent options.
Co-Authored-By: Claude Opus 5 <[email protected]>1 parent 4eae3b3 commit 768c511
2 files changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
459 | 457 | | |
460 | | - | |
461 | | - | |
| 458 | + | |
| 459 | + | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
| |||
0 commit comments