go-http-max-connections-demo

command module
v0.0.0-...-9ce5420 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2015 License: MIT Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL