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