Skip to content

feat: implement socket_options global parameter for daemon TCP tuning - #2595

Merged
oferchen merged 1 commit into
masterfrom
feature/socket-options-daemon
Mar 9, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/socket-options-daemon

Conversation

@oferchen

@oferchen oferchen commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add socket_options config parameter to oc-rsyncd.conf for TCP socket tuning
  • Supports TCP_NODELAY, SO_KEEPALIVE, SO_SNDBUF, SO_RCVBUF as comma-separated key=value pairs
  • Parses and applies options to daemon listener socket after binding via socket2::SockRef
  • Follows established pattern from bind_address and listen_backlog parameters
  • 22 unit tests for config parsing and socket option application

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy -p daemon passes
  • 22 socket_option tests pass via nextest
  • CI: fmt+clippy, nextest, Windows, macOS, Linux musl

@github-actions github-actions Bot added the enhancement New feature or request label Mar 9, 2026
Add socket_options config parameter supporting TCP_NODELAY, SO_KEEPALIVE,
SO_SNDBUF, SO_RCVBUF as comma-separated key=value pairs. Applied to
daemon listener socket after binding, matching upstream rsyncd.conf.
@oferchen
oferchen force-pushed the feature/socket-options-daemon branch from 04fa16f to a5200d3 Compare March 9, 2026 11:56
@oferchen
oferchen merged commit a903357 into master Mar 9, 2026
31 checks passed
@oferchen
oferchen deleted the feature/socket-options-daemon branch March 9, 2026 12:30
oferchen added a commit that referenced this pull request May 1, 2026
…#2595)

Add socket_options config parameter supporting TCP_NODELAY, SO_KEEPALIVE,
SO_SNDBUF, SO_RCVBUF as comma-separated key=value pairs. Applied to
daemon listener socket after binding, matching upstream rsyncd.conf.
oferchen added a commit that referenced this pull request May 5, 2026
…#2595)

Add socket_options config parameter supporting TCP_NODELAY, SO_KEEPALIVE,
SO_SNDBUF, SO_RCVBUF as comma-separated key=value pairs. Applied to
daemon listener socket after binding, matching upstream rsyncd.conf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant