mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
CLEANUP: mux-quic: always take the endp from the qcs not the cs
At a few places the endpoint pointer was retrieved from the conn_stream while it's safer and more long-term proof to take it from the qcs. Let's just do that.
This commit is contained in:
parent
7d299c284b
commit
15b0721ca5
@ -1298,15 +1298,15 @@ static size_t qc_rcv_buf(struct conn_stream *cs, struct buffer *buf,
|
|||||||
|
|
||||||
end:
|
end:
|
||||||
if (b_data(&qcs->rx.app_buf)) {
|
if (b_data(&qcs->rx.app_buf)) {
|
||||||
cs->endp->flags |= (CS_EP_RCV_MORE | CS_EP_WANT_ROOM);
|
qcs->endp->flags |= (CS_EP_RCV_MORE | CS_EP_WANT_ROOM);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cs->endp->flags &= ~(CS_EP_RCV_MORE | CS_EP_WANT_ROOM);
|
qcs->endp->flags &= ~(CS_EP_RCV_MORE | CS_EP_WANT_ROOM);
|
||||||
if (cs->endp->flags & CS_EP_ERR_PENDING)
|
if (qcs->endp->flags & CS_EP_ERR_PENDING)
|
||||||
cs->endp->flags |= CS_EP_ERROR;
|
qcs->endp->flags |= CS_EP_ERROR;
|
||||||
|
|
||||||
if (fin)
|
if (fin)
|
||||||
cs->endp->flags |= CS_EP_EOI;
|
qcs->endp->flags |= CS_EP_EOI;
|
||||||
|
|
||||||
if (b_size(&qcs->rx.app_buf)) {
|
if (b_size(&qcs->rx.app_buf)) {
|
||||||
b_free(&qcs->rx.app_buf);
|
b_free(&qcs->rx.app_buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user