-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Open
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: Networkingarea: SocketsNetworking socketsNetworking socketspriority: lowLow impact/importance bugLow impact/importance bug
Description
When calling listen on a socket you are supposed to provide the length of the pending connections backlog. In Zephyr this parameter is ignored when reaching net_context_listen.
Listen man entry specifies the behaviour as such:
The backlog argument defines the maximum length to which the queue of pending connections for sockfd may grow. If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underlying protocol supports retransmission, the request may be ignored so that a later reattempt at connection succeeds.
Currently the behaviour seems to be largely driven by the value of CONFIG_NET_MAX_CONN.
Metadata
Metadata
Assignees
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: Networkingarea: SocketsNetworking socketsNetworking socketspriority: lowLow impact/importance bugLow impact/importance bug