mirror of
https://github.com/containers/gvisor-tap-vsock.git
synced 2025-12-24 13:29:22 +08:00
golangci-lint reports the lack of timeouts as errors:
cmd/gvproxy/main.go:423:10: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
err := http.Serve(ln, mux)
^
cmd/test-companion/main.go:44:12: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
log.Fatal(http.ListenAndServe(":8080", mux))
^
test/port_forwarding_test.go:41:14: G114: Use of net/http serve function that has no support for setting timeouts (gosec)
if err := http.Serve(ln, mux); err != nil {
^
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>