chore(graceful): support custom timeout value (#466)

fixed: https://github.com/appleboy/gorush/issues/465
This commit is contained in:
Bo-Yi Wu
2020-02-05 23:23:16 +08:00
committed by GitHub
parent eba8c2d4a6
commit c379630c29
7 changed files with 19 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
core:
enabled: true # enabale httpd server
address: "" # ip address to bind (default: any)
shutdown_timeout: 30 # default is 30 second
port: "8088" # ignore this port number if auto_tls is enabled (listen 443).
worker_num: 0 # default worker number is runtime.NumCPU()
queue_num: 0 # default queue number is 8192