From a7ef50636ef1f59b5e65f1c769bd5d1208457b4c Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 21 Feb 2020 20:12:22 +0100 Subject: [PATCH] lwip: activate TCP_LISTEN_BACKLOG per default with `sock_tcp` Prevents unnecessary usage of resources, as the queue of `sock_tcp` is restricted. --- pkg/lwip/include/lwipopts.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/lwip/include/lwipopts.h b/pkg/lwip/include/lwipopts.h index b6808383b9..f8a8d1ef2d 100644 --- a/pkg/lwip/include/lwipopts.h +++ b/pkg/lwip/include/lwipopts.h @@ -134,6 +134,14 @@ extern "C" { #define LWIP_NETCONN (0) #endif +#ifndef TCP_LISTEN_BACKLOG +# if defined(MODULE_LWIP_SOCK_TCP) +# define TCP_LISTEN_BACKLOG (1) +# else +# define TCP_LISTEN_BACKLOG (0) +# endif +#endif /* TCP_LISTEN_BACKLOG */ + #define LWIP_SOCKET (0) #define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS