Commit 0a360df
BUG/MINOR: quic: ensure Tx buf is always purged
quic_conn API for sending was recently refactored. The main objective
was to regroup the different functions present for both handshake and
application emission.
After this refactoring, an optimization was introduced to avoid calling
qc_send() if there was nothing new to emit. However, this prevent the Tx
buffer to be purged if previous sending was interrupted, until new
frames are finally available.
To fix this, simply remove the optimization. qc_send() is thus now
always called in quic_conn IO handlers.
The impact of this bug should be minimal as it happens only on sending
temporary error. However in this case, this could cause extra latency or
even a complete sending freeze in the worst scenario.
This must be backported up to 3.0.
(cherry picked from commit 0ef94e2)
Signed-off-by: Christopher Faulet <[email protected]>1 parent 8728d68 commit 0a360df
2 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | 554 | | |
556 | 555 | | |
557 | | - | |
558 | | - | |
559 | 556 | | |
560 | 557 | | |
561 | 558 | | |
| |||
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | 594 | | |
601 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
602 | 598 | | |
603 | 599 | | |
604 | 600 | | |
| |||
804 | 800 | | |
805 | 801 | | |
806 | 802 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | 803 | | |
812 | 804 | | |
813 | 805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
731 | 736 | | |
732 | 737 | | |
733 | 738 | | |
| |||
0 commit comments