9b392a06 by astaxie

update to hotupdate's connet timeout

1 parent bf9de3bc
Showing 1 changed file with 5 additions and 1 deletions
......@@ -98,7 +98,11 @@ func (app *App) Run() {
err = fcgi.Serve(l, app.Handlers)
} else {
if EnbaleHotUpdate {
server := &http.Server{Handler: app.Handlers}
server := &http.Server{
Handler: app.Handlers,
ReadTimeout: time.Duration(HttpServerTimeOut) * time.Second,
WriteTimeout: time.Duration(HttpServerTimeOut) * time.Second,
}
laddr, err := net.ResolveTCPAddr("tcp", addr)
if nil != err {
BeeLogger.Fatal("ResolveTCPAddr:", err)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!