Repository navigation
feat: implement daemon config global parameters (bind_address, uid/gid, open_noatime, listen_backlog) - #2592
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/daemon-config-params
branch
from
March 9, 2026 08:27
513ccf3 to
de0588b
Compare
Parse 'address' directive from rsyncd.conf global section with IPv4/IPv6 validation. CLI --address/--bind takes priority over config file value. Includes 10 tests covering parsing, validation, and priority behavior.
Parse 'uid' and 'gid' directives from rsyncd.conf global section for privilege dropping after bind. Wire through GlobalConfig, config parsing with validation, and RuntimeOptions application. Includes tests.
Add 'open noatime' boolean module parameter that controls O_NOATIME flag on file opens during transfer. Parsed in module config, stored in ModuleState, wired through rsyncd_config. Includes tests.
Add 'listen backlog' directive for controlling TCP listen queue depth. Uses socket2 crate for explicit backlog control via bind_with_backlog(). Default matches upstream (5). Includes config parsing, validation, tests.
The bind_address and daemon_uid include handlers were incorrectly merged, causing 3 missing closing braces. Separate them into independent blocks following the established pattern, and add the missing listen_backlog include handler.
oferchen
force-pushed
the
feature/daemon-config-params
branch
from
March 9, 2026 08:33
de0588b to
609c4b5
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…d, open_noatime, listen_backlog) (#2592) * feat: implement bind_address global parameter for daemon TCP listener Parse 'address' directive from rsyncd.conf global section with IPv4/IPv6 validation. CLI --address/--bind takes priority over config file value. Includes 10 tests covering parsing, validation, and priority behavior. * feat: implement daemon_uid and daemon_gid global parameters Parse 'uid' and 'gid' directives from rsyncd.conf global section for privilege dropping after bind. Wire through GlobalConfig, config parsing with validation, and RuntimeOptions application. Includes tests. * feat: implement open_noatime module parameter for daemon Add 'open noatime' boolean module parameter that controls O_NOATIME flag on file opens during transfer. Parsed in module config, stored in ModuleState, wired through rsyncd_config. Includes tests. * feat: implement listen_backlog global parameter for daemon Add 'listen backlog' directive for controlling TCP listen queue depth. Uses socket2 crate for explicit backlog control via bind_with_backlog(). Default matches upstream (5). Includes config parsing, validation, tests. * fix: repair broken brace structure in config include handler The bind_address and daemon_uid include handlers were incorrectly merged, causing 3 missing closing braces. Separate them into independent blocks following the established pattern, and add the missing listen_backlog include handler.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…d, open_noatime, listen_backlog) (#2592) * feat: implement bind_address global parameter for daemon TCP listener Parse 'address' directive from rsyncd.conf global section with IPv4/IPv6 validation. CLI --address/--bind takes priority over config file value. Includes 10 tests covering parsing, validation, and priority behavior. * feat: implement daemon_uid and daemon_gid global parameters Parse 'uid' and 'gid' directives from rsyncd.conf global section for privilege dropping after bind. Wire through GlobalConfig, config parsing with validation, and RuntimeOptions application. Includes tests. * feat: implement open_noatime module parameter for daemon Add 'open noatime' boolean module parameter that controls O_NOATIME flag on file opens during transfer. Parsed in module config, stored in ModuleState, wired through rsyncd_config. Includes tests. * feat: implement listen_backlog global parameter for daemon Add 'listen backlog' directive for controlling TCP listen queue depth. Uses socket2 crate for explicit backlog control via bind_with_backlog(). Default matches upstream (5). Includes config parsing, validation, tests. * fix: repair broken brace structure in config include handler The bind_address and daemon_uid include handlers were incorrectly merged, causing 3 missing closing braces. Separate them into independent blocks following the established pattern, and add the missing listen_backlog include handler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bind_addressglobal parameter for daemon TCP listener interface bindingdaemon_uidanddaemon_gidglobal parameters for privilege droppingopen_noatimemodule parameter (O_NOATIME flag on Linux)listen_backlogglobal parameter forlisten(2)backlog tuningAll parameters mirror upstream
loadparm.c/daemon-parm.txtsemantics.Test plan