size_t (*get_bytes_in_flight_max)(OSSL_CC_DATA *ccdata);
/*
- * Returns the time at which the CC will next release more budget
- * for sending, or ossl_time_infinite().
+ * Returns the next time at which the CC will release more budget for
+ * sending, or ossl_time_infinite().
*/
OSSL_TIME (*get_next_credit_time)(OSSL_CC_DATA *ccdata);
uint64_t (*get_bytes_in_flight_max)(OSSL_CC_DATA *ccdata);
/*
- * Returns the time at which the CC will next release more budget
- * for sending, or ossl_time_infinite().
+ * Returns the next time at which the CC will release more budget for
+ * sending, or ossl_time_infinite().
*/
OSSL_TIME (*get_next_credit_time)(OSSL_CC_DATA *ccdata);
* code (e.g. ossl_quic_channel_raise_protocol_error), others are for very
* specific use by particular components only (e.g.
* ossl_quic_channel_on_handshake_confirmed).
- *
*/
/*
*
* On success, *pkt points to a OSSL_QRX_PKT structure. The structure should be
* freed when no longer needed by calling ossl_qrx_pkt_release(). The structure
- * is refcounted; to gain extra references, call ossl_qrx_pkt_ref(). This will
- * cause a corresponding number of calls to ossl_qrx_pkt_release() to be
+ * is refcounted; to gain extra references, call ossl_qrx_pkt_up_ref(). This
+ * will cause a corresponding number of calls to ossl_qrx_pkt_release() to be
* ignored.
*
* The resources referenced by (*pkt)->hdr, (*pkt)->hdr->data and (*pkt)->peer
/*
* Change the BIO being used by the QTX. May be NULL if actual transmission is
- * not currently required. Does not ref the BIO; the caller is responsible for
- * ensuring the lifetime of the BIO exceeds the lifetime of the QTX.
+ * not currently required. Does not up-ref the BIO; the caller is responsible
+ * for ensuring the lifetime of the BIO exceeds the lifetime of the QTX.
*/
void ossl_qtx_set_bio(OSSL_QTX *qtx, BIO *bio);
/* got at least one byte, the SSL_read op can finish now */
return 1;
- return 0; /* did not write anything, keep trying */
+ return 0; /* did not read anything, keep trying */
}
static int quic_read(SSL *s, void *buf, size_t len, size_t *bytes_read, int peek)