Fixed QUIC buffer consumption in send_chain().

This commit is contained in:
Roman Arutyunyan 2020-04-21 17:52:32 +03:00
parent f5497fb4b2
commit 29f6610c6a

View file

@ -2849,8 +2849,9 @@ ngx_quic_stream_send_chain(ngx_connection_t *c, ngx_chain_t *in,
return in;
}
b->pos += n;
if (n != (ssize_t) len) {
b->pos += n;
return in;
}
}