diff --git a/example_config.json b/example_config.json index f7b102f..c71042b 100644 --- a/example_config.json +++ b/example_config.json @@ -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, diff --git a/http/http.go b/http/http.go index 9e5c2e2..ba8f748 100644 --- a/http/http.go +++ b/http/http.go @@ -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),