comment update for admin controller of package ghttp

This commit is contained in:
john
2020-07-12 09:56:07 +08:00
parent 293256c2ca
commit 5c5dce9dc3
2 changed files with 2 additions and 7 deletions

View File

@ -7,12 +7,6 @@ import (
func main() {
s := g.Server()
s.EnableAdmin()
//s.BindHookHandler("/admin/*any", ghttp.HOOK_BEFORE_SERVE, func(r *ghttp.Request) {
// if !r.BasicAuth("admin", "123", "") {
// r.Exit()
// }
//})
s.SetPort(8199)
s.Run()
}

View File

@ -251,7 +251,8 @@ func forceCloseWebServers() {
})
}
// handleProcessMessage listens the signal from system.
// handleProcessMessage receives and handles the message from processes,
// which are commonly used for graceful reloading feature.
func handleProcessMessage() {
for {
if msg := gproc.Receive(gADMIN_GPROC_COMM_GROUP); msg != nil {