Large buffers were introduced in 3.4. They may be used in channels while
muxes continue to rely on normal-sized objects. In this case, zero-copy
must be disabled when sending data.
Most muxes were adapted but the hq-interop layer was forgotten. This
patch fixes this by adding a similar check to the one already present in
HTTP/3.
This must be backported up to 3.4.
goto end;
}
- if (unlikely(fsize == count &&
+ if (unlikely(fsize == count && b_size(res) == b_size(buf) &&
!b_data(res) &&
htx_nbblks(htx) == 1 && btype == HTX_BLK_DATA)) {
void *old_area = res->area;