mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:20:59 +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)
|
err = fcgi.Serve(l, app.Handlers)
|
||||||
} else {
|
} else {
|
||||||
if EnbaleHotUpdate {
|
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)
|
laddr, err := net.ResolveTCPAddr("tcp", addr)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
BeeLogger.Fatal("ResolveTCPAddr:", err)
|
BeeLogger.Fatal("ResolveTCPAddr:", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user