configure max_content_len per session #4892
Labels
enhancement
good-first-issue
Good for newcomers
help-wanted
This issue is not being actively worked on, but PRs welcome.
size-m
Estimated task size: medium (~1w)
Suggested enhancement
The max_content_len (in and out) is configurable at compile time only. It is used in mbedtls_ssl_setup for alloc memory.
Justification
When in need of having 2 tls sessions to different servers, even if one server is not supporting max_content_len, both sessions are forced to have 16k of IN buffer since it is a compile time option. If configurable at run time, this can save the memory from one session.
The text was updated successfully, but these errors were encountered: