mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-30 17:01:32 +00:00
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"],
|
"client_whitelist": ["OP1011"],
|
||||||
"udp_listen_addr": ":6881",
|
"udp_listen_addr": ":6881",
|
||||||
"http_listen_addr": ":6881",
|
"http_listen_addr": ":6881",
|
||||||
"http_request_timeout": "10s",
|
"http_request_timeout": "4s",
|
||||||
"http_read_timeout": "10s",
|
"http_read_timeout": "4s",
|
||||||
"http_write_timeout": "10s",
|
"http_write_timeout": "4s",
|
||||||
"http_listen_limit": 0,
|
"http_listen_limit": 0,
|
||||||
"driver": "noop",
|
"driver": "noop",
|
||||||
"stats_buffer_size": 0,
|
"stats_buffer_size": 0,
|
||||||
|
|
|
@ -132,6 +132,8 @@ func (s *Server) Serve(addr string) {
|
||||||
Timeout: s.config.HTTPRequestTimeout.Duration,
|
Timeout: s.config.HTTPRequestTimeout.Duration,
|
||||||
ConnState: s.connState,
|
ConnState: s.connState,
|
||||||
ListenLimit: s.config.HTTPListenLimit,
|
ListenLimit: s.config.HTTPListenLimit,
|
||||||
|
|
||||||
|
NoSignalHandling: true,
|
||||||
Server: &http.Server{
|
Server: &http.Server{
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
Handler: newRouter(s),
|
Handler: newRouter(s),
|
||||||
|
|
Loading…
Add table
Reference in a new issue