Skip to content

Commit

Permalink
QUIC CONFORMANCE: Wire the DATA_SENT state
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #21135)
  • Loading branch information
hlandau authored and paulidale committed Jul 16, 2023
1 parent e0bd282 commit c068f4d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ssl/quic/quic_txp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2372,8 +2372,16 @@ static int txp_generate_for_el_actual(OSSL_QUIC_TX_PACKETISER *txp,
*/
ossl_quic_stream_map_update_state(txp->args.qsm, stream);

if (stream->txp_drained)
if (stream->txp_drained) {
assert(!ossl_quic_sstream_has_pending(stream->sstream));

/*
* Transition to DATA_SENT if stream has a final size and we have
* sent all data.
*/
if (ossl_quic_sstream_get_final_size(stream->sstream, NULL))
ossl_quic_stream_map_notify_all_data_sent(txp->args.qsm, stream);
}
}

/* We have now sent the packet, so update state accordingly. */
Expand Down

0 comments on commit c068f4d

Please sign in to comment.