diff options
Diffstat (limited to 'nuttx/net/net_poll.c')
-rw-r--r-- | nuttx/net/net_poll.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/net/net_poll.c b/nuttx/net/net_poll.c index fac6186c4..0c5e5c75d 100644 --- a/nuttx/net/net_poll.c +++ b/nuttx/net/net_poll.c @@ -201,9 +201,15 @@ static inline int net_pollsetup(FAR struct socket *psock, struct pollfd *fds) fds->priv = (FAR void *)cb; +#ifdef CONFIG_NET_TCPBACKLOG + /* Check for read data or backlogged connection availability now */ + + if (!sq_empty(&conn->readahead) || uip_backlogavailable(conn)) +#else /* Check for read data availability now */ if (!sq_empty(&conn->readahead)) +#endif { fds->revents = fds->events & POLLIN; if (fds->revents != 0) |