Disable graceful signal handling
This commit is contained in:
parent
ff5339ceb3
commit
ae62188711
2 changed files with 5 additions and 3 deletions
|
@ -15,9 +15,9 @@
|
|||
"client_whitelist": ["OP1011"],
|
||||
"udp_listen_addr": ":6881",
|
||||
"http_listen_addr": ":6881",
|
||||
"http_request_timeout": "10s",
|
||||
"http_read_timeout": "10s",
|
||||
"http_write_timeout": "10s",
|
||||
"http_request_timeout": "4s",
|
||||
"http_read_timeout": "4s",
|
||||
"http_write_timeout": "4s",
|
||||
"http_listen_limit": 0,
|
||||
"driver": "noop",
|
||||
"stats_buffer_size": 0,
|
||||
|
|
|
@ -132,6 +132,8 @@ func (s *Server) Serve(addr string) {
|
|||
Timeout: s.config.HTTPRequestTimeout.Duration,
|
||||
ConnState: s.connState,
|
||||
ListenLimit: s.config.HTTPListenLimit,
|
||||
|
||||
NoSignalHandling: true,
|
||||
Server: &http.Server{
|
||||
Addr: addr,
|
||||
Handler: newRouter(s),
|
||||
|
|
Loading…
Add table
Reference in a new issue