Skip to content

Revise upsd behavior of MAXCONN vs. ulimit -n (getrlimit())#3433

Open
jimklimov wants to merge 7 commits into
networkupstools:masterfrom
jimklimov:issue-3365
Open

Revise upsd behavior of MAXCONN vs. ulimit -n (getrlimit())#3433
jimklimov wants to merge 7 commits into
networkupstools:masterfrom
jimklimov:issue-3365

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Addresses part of issue #3365

  • Refuse to start if MAXCONN configuration is too ambitious for current system settings
  • If config reload fails due to "Too many open files", try closing an oldest client connection and reloading again

@jimklimov jimklimov added this to the 2.8.6 milestone May 11, 2026
@jimklimov jimklimov added enhancement service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug labels May 11, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

A ZIP file with standard source tarball and another tarball with pre-built docs for commit 7af375f is temporarily available: NUT-tarballs-PR-3433.zip.

@AppVeyorBot
Copy link
Copy Markdown

Build nut 2.8.5.4683-master completed (commit 7ef8c477fd by @jimklimov)

jimklimov added 7 commits May 11, 2026 18:27
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… files" during configuration reload, close oldest client connection and retry [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…rmissons vs. MAXCONN request [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…fig [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… limit [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…rd is big enough to be useful considering the RESERVE_FD_COUNT_UPSD set aside AND a few actual connections [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…MAX - RESERVE_FD_COUNT_UPSD" on platforms where it might matter [networkupstools#3365]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@AppVeyorBot
Copy link
Copy Markdown

Build nut 2.8.5.4691-master completed (commit d84744bf99 by @jimklimov)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants