change default static buffer size to record header size to prevent memory fragmentation, only adds 8 bytes to SSL

This commit is contained in:
toddouska 2014-03-13 11:35:14 -07:00
parent 1c35e5929a
commit 2b8ee45a18

View File

@ -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 {