mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
MINOR: quic: Prepare Application level packet asap.
It is possible the TLS stack stack provides us with 1-RTT TX secrets at the same time as Handshake secrets are provided. Thanks to this simple patch we can build Application level packets during the handshake.
This commit is contained in:
parent
f798096412
commit
4bade77bf9
@ -2116,6 +2116,9 @@ static int qc_prep_hdshk_pkts(struct qring *qr, struct ssl_sock_ctx *ctx)
|
|||||||
if ((tel == QUIC_TLS_ENC_LEVEL_INITIAL || tel == QUIC_TLS_ENC_LEVEL_HANDSHAKE) &&
|
if ((tel == QUIC_TLS_ENC_LEVEL_INITIAL || tel == QUIC_TLS_ENC_LEVEL_HANDSHAKE) &&
|
||||||
(MT_LIST_ISEMPTY(&qel->pktns->tx.frms) ||
|
(MT_LIST_ISEMPTY(&qel->pktns->tx.frms) ||
|
||||||
(next_tel != QUIC_TLS_ENC_LEVEL_NONE && qc->els[next_tel].pktns->tx.in_flight))) {
|
(next_tel != QUIC_TLS_ENC_LEVEL_NONE && qc->els[next_tel].pktns->tx.in_flight))) {
|
||||||
|
/* If QUIC_TLS_ENC_LEVEL_HANDSHAKE was already reached let's try QUIC_TLS_ENC_LEVEL_APP */
|
||||||
|
if (tel == QUIC_TLS_ENC_LEVEL_HANDSHAKE && next_tel == tel)
|
||||||
|
next_tel = QUIC_TLS_ENC_LEVEL_APP;
|
||||||
tel = next_tel;
|
tel = next_tel;
|
||||||
qel = &qc->els[tel];
|
qel = &qc->els[tel];
|
||||||
if (!MT_LIST_ISEMPTY(&qel->pktns->tx.frms)) {
|
if (!MT_LIST_ISEMPTY(&qel->pktns->tx.frms)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user