mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-04 06:15:08 -04:00
MINOR: quic: Do not expect to receive only one O-RTT packet
There is nothing about this in the RFC. We must support to receive several 0-RTT packets before the handshake has completed.
This commit is contained in:
parent
ccf973f5ef
commit
4137b2d316
1 changed files with 3 additions and 1 deletions
|
|
@ -3091,7 +3091,9 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state)
|
|||
st = HA_ATOMIC_LOAD(&qc->state);
|
||||
TRACE_ENTER(QUIC_EV_CONN_HDSHK, ctx->conn, &st);
|
||||
ssl_err = SSL_ERROR_NONE;
|
||||
zero_rtt = !MT_LIST_ISEMPTY(&qc->els[QUIC_TLS_ENC_LEVEL_EARLY_DATA].rx.pqpkts);
|
||||
zero_rtt = st < QUIC_HS_ST_COMPLETE &&
|
||||
(!MT_LIST_ISEMPTY(&qc->els[QUIC_TLS_ENC_LEVEL_EARLY_DATA].rx.pqpkts) ||
|
||||
qc_el_rx_pkts(&qc->els[QUIC_TLS_ENC_LEVEL_EARLY_DATA]));
|
||||
start:
|
||||
if (!quic_get_tls_enc_levels(&tel, &next_tel, st, zero_rtt))
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue