This commit is contained in:
eson 2023-10-07 12:31:34 +08:00
parent 07d1a443b9
commit 63413d8a1e

View File

@ -42,9 +42,9 @@ func queueHandler(w http.ResponseWriter, r *http.Request) {
raddr := conn.RemoteAddr()
// laddr := conn.LocalAddr()
log.Printf("%s 建立连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(1))
fmt.Printf("%s 建立连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(1))
defer func() {
log.Printf("%s 退出连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(-1))
fmt.Printf("%s 退出连接 当前unity处理机器数量 %d\n", raddr, DequeueHandler.RefCountAdd(-1))
}()
for {