From 70b05c8096e1bffa7d4fba8fe231e72e826e305c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 30 Oct 2009 10:02:06 +0000 Subject: [PATCH] Increased default value for TCP_MSS to 536, updated default value for TCP_WND to 4*TCP_MSS to keep delayed ACK working. --- CHANGELOG | 4 ++++ src/include/lwip/opt.h | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 611be3b3..10a9b251 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -46,6 +46,10 @@ HISTORY ++ Bugfixes: + 2009-10-30: Simon Goldschmidt + * opt.h: Increased default value for TCP_MSS to 536, updated default + value for TCP_WND to 4*TCP_MSS to keep delayed ACK working. + 2009-10-28: Kieran Mansley * tcp_in.c, tcp_out.c, tcp.h: re-work the fast retransmission code to follow algorithm from TCP/IP Illustrated diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index df62680b..1f3f9bcd 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -759,7 +759,7 @@ * (2 * TCP_MSS) for things to work well */ #ifndef TCP_WND -#define TCP_WND 2048 +#define TCP_WND (4 * TCP_MSS) #endif /** @@ -785,14 +785,14 @@ #endif /** - * TCP_MSS: TCP Maximum segment size. (default is 128, a *very* - * conservative default.) + * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default, + * you might want to increase this.) * For the receive side, this MSS is advertised to the remote side * when opening a connection. For the transmit size, this MSS sets * an upper limit on the MSS advertised by the remote host. */ #ifndef TCP_MSS -#define TCP_MSS 128 +#define TCP_MSS 536 #endif /**