You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use http.Server with timeout instead of http.Serve
this change is same as what github.com/containers/gvisor-tap-vsock/pull/144
did for gvisor-tap-vsock
golangci-lint complains about calling http.Serve that doesn't have any
timeouts:
cmd/crc/cmd/daemon.go:146:13: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
if err := http.Serve(listener, handlers.LoggingHandler(os.Stderr, mux)); err != nil {
^
cmd/crc/cmd/daemon.go:157:13: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
if err := http.Serve(ln, handlers.LoggingHandler(os.Stderr, mux)); err != nil {
^
cmd/crc/cmd/daemon.go:168:13: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
if err := http.Serve(networkListener, handlers.LoggingHandler(os.Stderr, mux)); err != nil {
^
0 commit comments