fixed default value of TCP_SND_BUF to not violate the sanity checks in init.c

This commit is contained in:
Simon Goldschmidt 2011-09-21 18:47:44 +02:00 committed by goldsimon
parent c951ab8cee
commit 223307fa38
2 changed files with 9 additions and 3 deletions

View File

@ -41,6 +41,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)

View File

@ -957,10 +957,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
/**
@ -1423,7 +1424,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