From 8d5514603e2bf5645fa775997602697d9f8474a0 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 21 Sep 2011 18:47:44 +0200 Subject: [PATCH] fixed default value of TCP_SND_BUF to not violate the sanity checks in init.c --- CHANGELOG | 4 ++++ src/include/lwip/opt.h | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 36118e4c..82644b70 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -61,6 +61,10 @@ HISTORY ++ Bugfixes: + 2011-09-21: Simon Goldschmidt + * opt.h: fixed default value of TCP_SND_BUF to not violate the sanity checks + in init.c + 2011-09-20: Simon Goldschmidt * timers.c: fixed bug #34337 (possible NULL pointer in sys_check_timeouts) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 70d64bfe..cd1e47d6 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -968,10 +968,11 @@ /** - * TCP_SND_BUF: TCP sender buffer space (bytes). + * TCP_SND_BUF: TCP sender buffer space (bytes). + * To achieve good performance, this should be at least 2 * TCP_MSS. */ #ifndef TCP_SND_BUF -#define TCP_SND_BUF 256 +#define TCP_SND_BUF (2 * TCP_MSS) #endif /** @@ -1434,7 +1435,8 @@ #endif /** - * LWIP_SO_RCVTIMEO==1: Enable SO_RCVTIMEO processing. + * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and + * SO_RCVTIMEO processing. */ #ifndef LWIP_SO_RCVTIMEO #define LWIP_SO_RCVTIMEO 0 -- 2.39.2