Commit 419cc6e
committed
BUG/MINOR: mux_quic: refresh timeout only if I/O performed
Previously, QUIC MUX timeout was refreshed on every qcc_io_cb()
execution. This is not desired if no send/receive were performed, as in
this case the connection may be stuck.
This patch fixes this by refreshing timeout only if some progress is
performed during qcc_io_cb(). To implement this, return value of
qcc_io_recv() has been adjusted to return the number of newly decoded
bytes.
This patch is considered as a bug fix as without it there is a risk of
QUIC MUX inactivity timeout to be less efficient and to maintain a
connection too long.
This should be backported up to 2.8, after a period of observation.1 parent b8961ee commit 419cc6e
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3247 | 3247 | | |
3248 | 3248 | | |
3249 | 3249 | | |
3250 | | - | |
| 3250 | + | |
3251 | 3251 | | |
3252 | 3252 | | |
3253 | 3253 | | |
3254 | 3254 | | |
3255 | | - | |
| 3255 | + | |
3256 | 3256 | | |
3257 | 3257 | | |
3258 | 3258 | | |
| |||
3281 | 3281 | | |
3282 | 3282 | | |
3283 | 3283 | | |
| 3284 | + | |
3284 | 3285 | | |
3285 | 3286 | | |
3286 | 3287 | | |
3287 | 3288 | | |
3288 | 3289 | | |
3289 | | - | |
| 3290 | + | |
3290 | 3291 | | |
3291 | 3292 | | |
3292 | 3293 | | |
| |||
3613 | 3614 | | |
3614 | 3615 | | |
3615 | 3616 | | |
3616 | | - | |
| 3617 | + | |
3617 | 3618 | | |
3618 | 3619 | | |
3619 | 3620 | | |
| |||
3661 | 3662 | | |
3662 | 3663 | | |
3663 | 3664 | | |
3664 | | - | |
| 3665 | + | |
3665 | 3666 | | |
3666 | | - | |
| 3667 | + | |
3667 | 3668 | | |
3668 | 3669 | | |
3669 | 3670 | | |
3670 | 3671 | | |
3671 | 3672 | | |
3672 | 3673 | | |
3673 | | - | |
| 3674 | + | |
| 3675 | + | |
3674 | 3676 | | |
3675 | 3677 | | |
3676 | 3678 | | |
| |||
0 commit comments