diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-07-13 11:36:24 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-07-21 08:43:52 +0200 |
commit | c206f2aa62ace93ce06a940e6992ffb4f3316bb5 (patch) | |
tree | 7759ed769eb5df4c38576a6909276174ddd849a5 /include | |
parent | 9441624ee91705bf9f7a35ba06ec336a9d63868e (diff) |
QUIC TXP: Refactor TXP-related deadline handling into TXP
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21458)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_txp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/internal/quic_txp.h b/include/internal/quic_txp.h index c5a4c44a52..74590749fc 100644 --- a/include/internal/quic_txp.h +++ b/include/internal/quic_txp.h @@ -91,6 +91,18 @@ int ossl_quic_tx_packetiser_generate(OSSL_QUIC_TX_PACKETISER *txp, QUIC_TXP_STATUS *status); /* + * Returns a deadline after which a call to ossl_quic_tx_packetiser_generate() + * might succeed even if it did not previously. This may return + * ossl_time_infinite() if there is no such deadline currently applicable. It + * returns ossl_time_zero() if there is (potentially) more data to be generated + * immediately. The value returned is liable to change after any call to + * ossl_quic_tx_packetiser_generate() (or after ACKM or CC state changes). Note + * that ossl_quic_tx_packetiser_generate() can also start to succeed for other + * non-chronological reasons, such as changes to send stream buffers, etc. + */ +OSSL_TIME ossl_quic_tx_packetiser_get_deadline(OSSL_QUIC_TX_PACKETISER *txp); + +/* * Set the token used in Initial packets. The callback is called when the buffer * is no longer needed; for example, when the TXP is freed or when this function * is called again with a new buffer. |