Commit 4665289
authored
Correctly handle split frame headers for WebSocket handleMessage (#68)
This resolves the failing tests in the browser around:
can handle frames split over socket reads
can republish in consume block without race condition
It appears the math from the socket implementation for handling partial headers in handleMessage wasn't copied over fully for the WebSocket implementation.1 parent 08c1aa6 commit 4665289
3 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
542 | | - | |
| 541 | + | |
543 | 542 | | |
544 | 543 | | |
545 | 544 | | |
| |||
553 | 552 | | |
554 | 553 | | |
555 | 554 | | |
556 | | - | |
| 555 | + | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
635 | 634 | | |
636 | 635 | | |
637 | 636 | | |
638 | | - | |
639 | | - | |
| 637 | + | |
640 | 638 | | |
641 | 639 | | |
642 | 640 | | |
| |||
0 commit comments