rustls/provider-example
Eloi DEMOLIS 2f02ddc21b Create type OutboundChunks for OutboundMessage
The ConnectionCommon<T>::write_vectored was implemented by processing
each chunk, fragmenting them and wrapping each fragment in a
OutboundMessage before encrypting and sending it as separate TLS frames.
For very fragmented payloads this generates a lot of very small payloads
with most of the data being TLS headers.

OutboundChunks can contain an arbitrary amount of fragmented chunks.
This allows write_vectored to process all its chunks at once,
fragmenting it in place if needed and wrapping it in a OutboundMessage.
All the chunks are merged in a contiguous vector (taking atvantage of an
already existent copy) before being encrypted and sent as a single TLS
frame.

Signed-off-by: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
Co-Authored-By: Emmanuel Bosquet <bjokac@gmail.com>
2024-02-16 09:10:13 +00:00
..
examples Implement FromIterator for RootCertStore (#1708) 2023-12-25 10:58:26 +01:00
src Create type OutboundChunks for OutboundMessage 2024-02-16 09:10:13 +00:00
tests hpke: reorder seal/open args, less terse arg names 2024-01-09 15:29:07 +00:00
Cargo.toml Add note about env_logger 0.11 upgrade 2024-01-23 09:26:06 +00:00