Alex Villacís Lasso 8607ac169b Stop accept()-ing connections if already at max connection limit
The constant CONFIG_LWIP_MAX_SOCKETS, if available, tells how many
sockets can be opened at once. If already at this limit, and an attempt
is made to accept() an additional incoming connection from a listening
socket, the accept() call will fail. Fix this by checking the socket
list and refusing to add the listening socket to the set of readable
sockets to check in the select() call. This will cause connections to
remain in the listening backlog until some other socket is closed.
2021-09-07 15:02:21 -05:00
2020-12-21 12:59:04 -05:00
2020-12-21 12:59:04 -05:00
Description
No description provided
95 KiB
Languages
C++ 100%