Commit 78bef07
Reject unexpected frame types on bidi streams
Summary:
Previously, bidiStreamDemuxer silently ignored unrecognized frame types,
causing connections to hang until idle timeout (30s). This was observed
with clients sending LEGACY_CLIENT_SETUP (0x40) after negotiating
moqt-16 via ALPN, where CLIENT_SETUP is 0x20.
Now the session immediately closes with PROTOCOL_VIOLATION and logs the
unexpected frame type.
Reviewed By: sharmafb
Differential Revision: D96628382
fbshipit-source-id: 23f9894fe3a98039d60585749beb72e623810c231 parent d6a62bc commit 78bef07
2 files changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5312 | 5312 | | |
5313 | 5313 | | |
5314 | 5314 | | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
5315 | 5319 | | |
5316 | 5320 | | |
5317 | 5321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
533 | 587 | | |
534 | 588 | | |
535 | 589 | | |
| |||
0 commit comments