Skip to content

Commit

Permalink
tcp:set NET_TCP_NPOLLWAITERS default value to 2 & add warning of diff…
Browse files Browse the repository at this point in the history
…erent events having same event bit

Signed-off-by: wangchen <[email protected]>
  • Loading branch information
wangchen61698 committed Aug 23, 2024
1 parent 4d4d8a6 commit 460e1e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/tcp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ config NET_TCP_MAX_CONNS

config NET_TCP_NPOLLWAITERS
int "Number of TCP poll waiters"
default 1
default 2

config NET_TCP_RTO
int "RTO of TCP/IP connections"
Expand Down
1 change: 1 addition & 0 deletions net/tcp/tcp_netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ int tcp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds)
info = conn->pollinfo;
while (info->conn != NULL)
{
DEBUGASSERT((fds->events & info->fds->events) != 0);
if (++info >= &conn->pollinfo[CONFIG_NET_TCP_NPOLLWAITERS])
{
DEBUGPANIC();
Expand Down

0 comments on commit 460e1e3

Please sign in to comment.