Httpd max connections demo by Golang.
Unlimited (default) httpd connection mode
$ go-http-max-connections-demo default
(another shell)
$ curl http://127.0.0.1:8080/
Default
Limited httpd connection mode.
$ go-http-max-connections-demo limited [-m MAX_CONNECTIONS]
(another shell)
$ curl http://127.0.0.1:8080/
Limited
If you want to stop this demo, please type CTRL+C.
To install, use go get
:
$ go get -d github.com/koemu/go-http-max-connections-demo
- Fork (https://github.com/koemu/go-http-max-connections-demo/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request