Commit ac83e94
authored
## Description
When creating a connection pool, if a `QuicConnStart` fails:
- the connection was marked as `ExternalOwner` to prevent it from
sending notification to the app
- but this also mean that the closing logic will take care of releasing
the owner refcount, since the application is not the owner yet
- the connection was closed using `MsQuicConnectionClose`, which release
the refcount of the application
This caused a double release, triggering an assertion.
We should not call APIs from internal call (it makes logging confusing
and breaks some assumptions), so queue the connection close manually
instead.
Fixes #5550.
## Testing
C/I.
Need to consider if there is a simple way to deterministically test the
connection pool failure paths.
1 parent f11bf0e commit ac83e94
2 files changed
+54
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
222 | 256 | | |
223 | 257 | | |
224 | 258 | | |
| |||
342 | 376 | | |
343 | 377 | | |
344 | 378 | | |
345 | | - | |
346 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
347 | 382 | | |
348 | 383 | | |
349 | | - | |
| 384 | + | |
350 | 385 | | |
351 | 386 | | |
352 | 387 | | |
| |||
656 | 691 | | |
657 | 692 | | |
658 | 693 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
664 | 708 | | |
665 | | - | |
666 | 709 | | |
667 | 710 | | |
668 | 711 | | |
| |||
0 commit comments