Commit cb487c4
committed
fix: dispose deferred scale-down connection during DisposeAsync
When DisposeAsync runs while _deferredScaleDownConnection is non-null,
the connection was leaked. This happens when a shrink task completes and
the connection is deferred (waiting for in-flight requests to drain for
partition affinity), but DisposeAsync is called before the drain finishes.
The connection is already removed from _pinnedConnections by the shrink
task, so it isn't reached by any other disposal path.1 parent 868e197 commit cb487c4
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2485 | 2496 | | |
2486 | 2497 | | |
2487 | 2498 | | |
| |||
0 commit comments