forked from wolfSSL/wolfssl
change default static buffer size to record header size to prevent memory fragmentation, only adds 8 bytes to SSL
This commit is contained in:
@ -893,8 +893,8 @@ enum {
|
|||||||
#define STATIC_BUFFER_LEN RECORD_HEADER_SZ + RECORD_SIZE + COMP_EXTRA + \
|
#define STATIC_BUFFER_LEN RECORD_HEADER_SZ + RECORD_SIZE + COMP_EXTRA + \
|
||||||
MTU_EXTRA + MAX_MSG_EXTRA
|
MTU_EXTRA + MAX_MSG_EXTRA
|
||||||
#else
|
#else
|
||||||
/* zero length arrays may not be supported */
|
/* don't fragment memory from the record header */
|
||||||
#define STATIC_BUFFER_LEN 1
|
#define STATIC_BUFFER_LEN RECORD_HEADER_SZ
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Reference in New Issue
Block a user