]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tls] Request a maximum fragment length of 2048 bytes
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Jun 2012 14:28:15 +0000 (15:28 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jun 2012 14:28:15 +0000 (15:28 +0100)
commit9a8c6b00d4433eb5c24f50c0c4a93c127d77def0
tree4c365afc9d8a34dbaf784779ac842c63142d4c07
parentea61075c60e6417203bbb5fd54e1f313c99c164c
[tls] Request a maximum fragment length of 2048 bytes

The default maximum plaintext fragment length for TLS is 16kB, which
is a substantial amount of memory for iPXE to have to allocate for a
temporary decryption buffer.

Reduce the memory footprint of TLS connections by requesting a maximum
fragment length of 2kB.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tls.h
src/net/tls.c