~mendelmaleh/dummy

04d85b90f603a503a73404ef5e9c6a1d9c9f0f6a — Mendel E 1 year, 28 days ago b47194f
Set connections limit in config
1 files changed, 2 insertions(+), 1 deletions(-)

M cmd/dummyserver/main.go
M cmd/dummyserver/main.go => cmd/dummyserver/main.go +2 -1
@@ 21,6 21,7 @@ import (

type Config struct {
	Dummy struct {
		Conns                      int
		Addr, Pattern, Fonts, Font string
	}
}


@@ 107,7 108,7 @@ func main() {
		log.Fatal(err)
	}

	listener = netutil.LimitListener(listener, 16)
	listener = netutil.LimitListener(listener, config.Dummy.Conns)
	log.Panic(http.Serve(listener, nil))
}