mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
MINOR: quic: Do not modify a marked as consumed datagram
Mark the datagrams as consumed at the very last time.
This commit is contained in:
parent
8de3eff8f7
commit
841bf5e7f4
@ -5397,14 +5397,14 @@ struct task *quic_lstnr_dghdlr(struct task *t, void *ctx, unsigned int state)
|
|||||||
break;
|
break;
|
||||||
} while (pos < end);
|
} while (pos < end);
|
||||||
|
|
||||||
/* Mark this datagram as consumed */
|
|
||||||
HA_ATOMIC_STORE(&dgram->buf, NULL);
|
|
||||||
|
|
||||||
/* Increasing the received bytes counter by the UDP datagram length
|
/* Increasing the received bytes counter by the UDP datagram length
|
||||||
* if this datagram could be associated to a connection.
|
* if this datagram could be associated to a connection.
|
||||||
*/
|
*/
|
||||||
if (dgram->qc)
|
if (dgram->qc)
|
||||||
dgram->qc->rx.bytes += dgram->len;
|
dgram->qc->rx.bytes += dgram->len;
|
||||||
|
|
||||||
|
/* Mark this datagram as consumed */
|
||||||
|
HA_ATOMIC_STORE(&dgram->buf, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
Loading…
Reference in New Issue
Block a user