Skip to content

Commit

Permalink
Merge pull request #280 from jumpserver/dev
Browse files Browse the repository at this point in the history
[update] remove http server timeout settings (#279)
  • Loading branch information
LeeEirc authored Apr 21, 2020
2 parents 53ec2a7 + 46375eb commit 44d519b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/httpd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ func StartHTTPServer() {
}
addr := net.JoinHostPort(conf.BindHost, conf.HTTPPort)
logger.Info("Start HTTP server at ", addr)
httpServer = &http.Server{Addr: addr, Handler: router,
WriteTimeout: 60 * time.Second,
ReadTimeout: 60 * time.Second,
IdleTimeout: time.Second * 70,}
httpServer = &http.Server{Addr: addr, Handler: router,}
logger.Fatal(httpServer.ListenAndServe())
}

Expand Down

0 comments on commit 44d519b

Please sign in to comment.