embedded-tls icon indicating copy to clipboard operation
embedded-tls copied to clipboard

Add support for buffering received records

Open lulf opened this issue 2 years ago • 0 comments

At present, each recv() call on the TlsConnection will discard data if the receive buffer is less than the size of the content in the TLS record. To fix this, we need to introduce a buffer for holding up to 1 TLS record of data. Since this would bump the memory requirements quite a bit, I think it would be best if we created a type that wraps the TlsConnection + a buffer to hold the data, or an optional rx_buffer argument to TlsConnection (which might be more ergonomic for a user).

lulf avatar May 11 '22 07:05 lulf