I’m trying to chase down an out of heap memory problem when a TCP socket is created. heap2 malloc fails requesting 5872 bytes. This looks like it’s based on creating stream buffers via…
#define ipconfigTCP_RX_BUF_LEN ( 4 * ipconfigTCP_MSS ) /* defaults to 5840 bytes */
/* Define the size of Tx stream buffer for TCP sockets */
define ipconfigTCP_TX_BUF_LEN ( 4 * ipconfigTCP_MSS ) /* defaults to 5840 bytes */
This seems ot add up to >10K per tcp socket. Can I reduce TCP_MSS to something smaller? Can it be less than an ethernet Mtu?