Files
inbuxa-server/crates/common
jcoffey-dev b6f943a77c
ci / fork-checks (pull_request) Successful in 46s
ci / build (pull_request) Successful in 10m37s
Don't listen on a socket whose bind failed
When a listener couldn't bind its address (a port below 1024 without
root, a port already in use, or the legacy-protocols switch putting a
listener back after privileges were dropped), the bind error was
reported but the socket was still passed to listen(). The kernel then
bound it itself, to a random port on every interface, and the server
logged the listener as started on the port it was configured with.

listen() now refuses a socket that isn't bound, so the listener is
reported with a listen error and skipped, and nothing opens anywhere
unexpected.
2026-09-26 01:36:39 -07:00
..
2026-09-18 10:21:56 -07:00
2026-09-22 16:57:06 -07:00