Control http max connections by Golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
command
.gitignore
LICENSE
README.md
commands.go
main.go
version.go

README.md

go-http-max-connections-demo

Description

Httpd max connections demo by Golang.

Usage

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.

Install

To install, use go get:

$ go get -d github.com/koemu/go-http-max-connections-demo

Contribution

  1. Fork (https://github.com/koemu/go-http-max-connections-demo/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

Yuichiro Saito