Mercurial > prosody-hg
view core/features.lua @ 14182:a331cde41c85 13.0
util.poll: Reject fd == FD_SETSIZE
FD_SETSIZE is the maximum total number of FDs supports (well, the highest
valid fd number). 0 is a valid fd number, so it supports up to 1023 if
FD_SETSIZE is 1024.
This is just a fencepost issue, fds > FD_SETSIZE were already correctly
rejected.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 25 May 2026 16:06:19 +0100 |
| parents | 569fae28a2f3 |
| children | cc406878209d 7eb0e47418ab |
line wrap: on
line source
local set = require "prosody.util.set"; return { available = set.new{ -- mod_bookmarks bundled "mod_bookmarks"; -- mod_server_info bundled "mod_server_info"; -- mod_flags bundled "mod_flags"; -- mod_cloud_notify bundled "mod_cloud_notify"; -- mod_muc has built-in vcard support "muc_vcard"; -- mod_http_altconnect bundled "http_altconnect"; -- Roles, module.may and per-session authz "permissions"; -- prosody.* namespace "loader"; -- "keyval+" store "keyval+"; "s2sout-pre-connect-event"; -- prosody:guest, prosody:registered, prosody:member "split-user-roles"; -- new moduleapi methods "getopt-enum"; "getopt-interval"; "getopt-period"; "getopt-integer"; -- new module.ready() "module-ready"; -- SIGUSR1 and 2 events "signal-events"; }; };
