fix 5022: Miss assiging ln to graceful Server (#5028)
This commit is contained in:
parent
080f4e1a56
commit
ab5a13f02a
@ -3,6 +3,7 @@
|
|||||||
- [Fix 4907: make admin serve HTTP only](https://github.com/beego/beego/pull/5005)
|
- [Fix 4907: make admin serve HTTP only](https://github.com/beego/beego/pull/5005)
|
||||||
- [Feat 4999: add get all tasks function](https://github.com/beego/beego/pull/4999)
|
- [Feat 4999: add get all tasks function](https://github.com/beego/beego/pull/4999)
|
||||||
- [Fix 5012: fix some bug, pass []any as any in variadic function](https://github.com/beego/beego/pull/5012)
|
- [Fix 5012: fix some bug, pass []any as any in variadic function](https://github.com/beego/beego/pull/5012)
|
||||||
|
- [Fix 5022: Miss assigning listener to graceful Server](https://github.com/beego/beego/pull/5028)
|
||||||
|
|
||||||
|
|
||||||
# v2.0.4
|
# v2.0.4
|
||||||
|
|||||||
@ -20,6 +20,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/beego/beego/v2/core/config"
|
"github.com/beego/beego/v2/core/config"
|
||||||
|
"github.com/pelletier/go-toml"
|
||||||
)
|
)
|
||||||
|
|
||||||
const keySeparator = "."
|
const keySeparator = "."
|
||||||
|
|||||||
@ -38,6 +38,7 @@ func (srv *Server) Serve() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (srv *Server) ServeWithListener(ln net.Listener) (err error) {
|
func (srv *Server) ServeWithListener(ln net.Listener) (err error) {
|
||||||
|
srv.ln = ln
|
||||||
go srv.handleSignals()
|
go srv.handleSignals()
|
||||||
return srv.internalServe(ln)
|
return srv.internalServe(ln)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user