Files
gvisor-tap-vsock/cmd
Christophe Fergeau b98e2748de net: Add timeout to http.Serve calls
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>
2022-09-06 18:33:45 +05:30
..