net: enable tcp backlog by default

If the NET_TCPBACKLOG configuration is not enabled, no I/O event will be
triggered for the socket file descriptor in poll/epoll. As a result, the
connection will not be accepted, leading to a failure in the TCP handshake.

The problem is that users may not have noticed this configuration,
no event will be received when polling the socket fd.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2025-06-26 17:24:51 +08:00 committed by Alan C. Assis
parent 3ca0d1e478
commit c1aa625bdb

View file

@ -299,7 +299,7 @@ endif # NET_TCP_WRITE_BUFFERS
config NET_TCPBACKLOG
bool "TCP/IP backlog support"
default n
default y
---help---
Incoming connections pend in a backlog until accept() is called.
The size of the backlog is selected when listen() is called.