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:
parent
1fce345481
commit
807c3a16e3
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue