Commit e4e7965
committed
BUG/MAJOR: mux-h1: Properly copy chunked input data during zero-copy nego
When data are transfered via zero-copy data forwarding, if some data were
already received, we try to immediately tranfer it during the negociation
step. If data are chunked and the chunk size is unknown, 10 bytes are reserved
to write the chunk size during the done step. However, when input data are
finally transferred, the offset is ignored. Data are copied into the output
buffer. But the first 10 bytes are then crushed by the chunk size. Thus the
chunk is truncated leading to a malformed message.
This patch should fix the issue #2598. It must be backported to 3.0.
(cherry picked from commit e8cc8a6)
Signed-off-by: Christopher Faulet <[email protected]>1 parent 913b7b6 commit e4e7965
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
| 4727 | + | |
4727 | 4728 | | |
| 4729 | + | |
4728 | 4730 | | |
4729 | 4731 | | |
4730 | 4732 | | |
| |||
0 commit comments