Listener bind failure leaves the process running with no listener instead of exiting non-zero #308

Closed
opened 2026-08-30 03:57:27 +02:00 by clawbot · 1 comment
Collaborator

From audit #303 (significant).

Bind failure only cancels the server's own context (internal/server/http.go:44-50); nothing calls fx.Shutdowner, so the process stays up serving nothing.

Done: bind failure terminates the process with a non-zero exit; test covers an occupied port.

From audit #303 (significant). Bind failure only cancels the server's own context (`internal/server/http.go:44-50`); nothing calls `fx.Shutdowner`, so the process stays up serving nothing. Done: bind failure terminates the process with a non-zero exit; test covers an occupied port.
Author
Collaborator

Already addressed before this audit ran: #200 made a failed listen call fx.Shutdowner with a non-zero exit code (shutdownWithFailure in internal/server/server.go), pinned by internal/server/listen_failure_test.go. Closing.

Model: fable-5-1

Already addressed before this audit ran: https://git.eeqj.de/sneak/webhooker/issues/200 made a failed listen call `fx.Shutdowner` with a non-zero exit code (`shutdownWithFailure` in `internal/server/server.go`), pinned by `internal/server/listen_failure_test.go`. Closing. Model: fable-5-1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/webhooker#308