From 88a300d2e6d7f16cd124c00ccaa30599ca14279c Mon Sep 17 00:00:00 2001 From: liqinhui Date: Fri, 6 Dec 2024 21:34:59 +0800 Subject: [PATCH] net: Remove the DEBUGASSERT of the same event of the same fd in tcp_pollsetup. In libuv, if the real_timeout in the uv__io_poll is less than 0, the poll logic will be entered directly by the uv__run_timers, which will trigger the ASSERT. It seems that the situation of first epoll and then poll for the same fd is used in libuv. Signed-off-by: liqinhui --- net/tcp/tcp_netpoll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/tcp/tcp_netpoll.c b/net/tcp/tcp_netpoll.c index bbcd98b9fe..f31077bcf5 100644 --- a/net/tcp/tcp_netpoll.c +++ b/net/tcp/tcp_netpoll.c @@ -230,7 +230,6 @@ 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();