Skip to content

Increase listen backlog from 20 to SOMAXCONN#11

Merged
lploom merged 1 commit intoaddnode-fixesfrom
rpc-socket-enhancements
Apr 30, 2026
Merged

Increase listen backlog from 20 to SOMAXCONN#11
lploom merged 1 commit intoaddnode-fixesfrom
rpc-socket-enhancements

Conversation

@lploom
Copy link
Copy Markdown
Contributor

@lploom lploom commented Apr 30, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the RPCServer::Start method in src/network/rpc_server.cpp to use the system-defined SOMAXCONN constant for the socket listen backlog instead of a hardcoded value of 20. This change improves the server's ability to handle bursts of concurrent connections by utilizing the maximum queue length permitted by the operating system. I have no feedback to provide as there were no review comments to evaluate.

@lploom lploom requested a review from MastaP April 30, 2026 10:23
@lploom lploom merged commit addf7dd into addnode-fixes Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPC Socket drops connections under concurrent access (listen backlog overflow)

2 participants