Skip to content

Commit

Permalink
tcp: add RE_TCP_BACKLOG (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Jan 26, 2023
1 parent 36e37d2 commit 8a41946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tcp/tcp_high.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <re_mbuf.h>
#include <re_tcp.h>

#ifndef RE_TCP_BACKLOG
#define RE_TCP_BACKLOG 5
#endif

/**
* Create and listen on a TCP Socket
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 8a41946

Please sign in to comment.