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:
parent
bf9de3bcf6
commit
9b392a0601
6
beego.go
6
beego.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user