lwip: set to max snd window which is known to work

The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP
definitely works solely for the receive window, not for the send window.
Setting the send window size to the maximum of an 16bit value, 65535,
or multiple of it (x * 65536 - 1) results in the same performance.

Everything else decrease performance.

We will have to check this window scale patch before using higher values.
This commit is contained in:
Alexander Boettcher 2013-06-27 10:00:09 +02:00 committed by Stefan Kalkowski
parent 4925f77dac
commit 776a8d3f8c
1 changed files with 10 additions and 1 deletions

View File

@ -66,7 +66,16 @@
#define TCP_MSS 1460
#define TCP_WND (96 * TCP_MSS)
#define TCP_SND_BUF (32 * TCP_MSS)
/*
* The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP
* definitely works solely for the receive window, not for the send window.
* Setting the send window size to the maximum of an 16bit value, 65535,
* or multiple of it (x * 65536 - 1) results in the same performance.
* Everything else decrease performance.
*/
#define TCP_SND_BUF (65535)
#define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
#define RECV_BUFSIZE_DEFAULT 128 * 1024