add option for max connection (#112)

add option for max connection
This commit is contained in:
Yifa Zhang 2016-08-13 15:29:21 +08:00 committed by Iwasaki Yudai
parent 54597c0ba6
commit be07d420dd
4 changed files with 31 additions and 2 deletions

View file

@ -33,6 +33,7 @@ func main() {
flag{"title-format", "", "Title format of browser window"},
flag{"reconnect", "", "Enable reconnection"},
flag{"reconnect-time", "", "Time to reconnect"},
flag{"max-connection", "", "Maximum connection to gotty, 0(default) means no limit"},
flag{"once", "", "Accept only one client and exit on disconnection"},
flag{"permit-arguments", "", "Permit clients to send command line arguments in URL (e.g. http://example.com:8080/?arg=AAA&arg=BBB)"},
flag{"close-signal", "", "Signal sent to the command process when gotty close it (default: SIGHUP)"},