Skip to content
No description, website, or topics provided.
Go Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
accesslog
pidfile
proxy
upstream
.gitignore
.goreleaser.yml add goreleaser Feb 23, 2019
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
chocon.go

README.md

chocon

chocon is a simple proxy server for persisting connections between upstream servers.

Requirements

chocon requires Go1.11.3 or later.

Installation

go get -u github.com/kazeburo/chocon

Build

make bundle
make

Run

chocon

Usage

$ chocon -h
Usage:
chocon [OPTIONS]

Application Options:
  -l, --listen=                 address to bind (default: 0.0.0.0)
  -p, --port=                   Port number to bind (default: 3000)
      --access-log-dir=         directory to store logfiles
      --access-log-rotate=      Number of rotation before remove logs (default: 30)
      --access-log-rotate-time= Interval minutes between file rotation (default: 1440)
  -v, --version                 Show version
      --pid-file=               filename to store pid. disabled by default
  -c, --keepalive-conns=        maximum keepalive connections for upstream (default: 2)
      --max-conns-per-host=     maximum connections per host (default: 0)
      --read-timeout=           timeout of reading request (default: 30)
      --write-timeout=          timeout of writing response (default: 90)
      --proxy-read-timeout=     timeout of reading response from upstream (default: 60)
      --shutdown-timeout=       timeout to wait for all connections to be closed. (default: 1h)
      --upstream=               upstream server: http://upstream-server/
      --stsize=                 buffer size for http stats (default: 1000)
      --spfactor=               sampling factor for http stats (default: 3)

Help Options:
      -h, --help                Show this help message

You can’t perform that action at this time.