embedded-tls
embedded-tls copied to clipboard
Add support for buffering received records
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).