http.Serve return value discarded — server stop goes unlogged #33

Closed
opened 2026-05-17 23:13:58 +02:00 by heiko · 2 comments
Owner

Summary

cmd/cert-proxy-server/main.go:71:

_ = http.Serve(listener, nil)

If the server exits unexpectedly (listener error, OS signal, etc.) the error is silently discarded. There is no log entry indicating why the server stopped, which hinders incident response.

Fix

log.Fatal(http.Serve(listener, nil))
## Summary `cmd/cert-proxy-server/main.go:71`: ```go _ = http.Serve(listener, nil) ``` If the server exits unexpectedly (listener error, OS signal, etc.) the error is silently discarded. There is no log entry indicating why the server stopped, which hinders incident response. ## Fix ```go log.Fatal(http.Serve(listener, nil)) ```
Author
Owner

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex
Author
Owner

Server never stops. /wontfix

Server never stops. /wontfix
heiko 2026-05-24 20:11:18 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
heiko/cert-proxy#33
No description provided.