Skip to content

Commit 88a300d

Browse files
liqinhuixmanchao
authored andcommitted
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 <[email protected]>
1 parent 46c2d46 commit 88a300d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/tcp/tcp_netpoll.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ int tcp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds)
230230
info = conn->pollinfo;
231231
while (info->conn != NULL)
232232
{
233-
DEBUGASSERT((fds->events & info->fds->events) != 0);
234233
if (++info >= &conn->pollinfo[CONFIG_NET_TCP_NPOLLWAITERS])
235234
{
236235
DEBUGPANIC();

0 commit comments

Comments
 (0)