From 8a4194645d7abc063374b22edb00b0cab410f177 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 26 Jan 2023 09:43:47 +0100 Subject: [PATCH] tcp: add RE_TCP_BACKLOG (#661) --- src/tcp/tcp_high.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tcp/tcp_high.c b/src/tcp/tcp_high.c index a6d198d8d..c302de213 100644 --- a/src/tcp/tcp_high.c +++ b/src/tcp/tcp_high.c @@ -8,6 +8,9 @@ #include #include +#ifndef RE_TCP_BACKLOG +#define RE_TCP_BACKLOG 5 +#endif /** * Create and listen on a TCP Socket @@ -36,7 +39,7 @@ int tcp_listen(struct tcp_sock **tsp, const struct sa *local, if (err) goto out; - err = tcp_sock_listen(ts, 5); + err = tcp_sock_listen(ts, RE_TCP_BACKLOG); if (err) goto out;