1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:10:56 +00:00

update to hotupdate's connet timeout

This commit is contained in:
astaxie 2013-07-03 16:58:15 +08:00
parent bf9de3bcf6
commit 9b392a0601

View File

@ -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)