tcp:set NET_TCP_NPOLLWAITERS default value to 2 & add warning of different events having same event bit

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2023-12-27 10:27:46 +08:00 committed by Xiang Xiao
parent 1fce345481
commit 807c3a16e3
2 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,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"

View File

@ -230,6 +230,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();