Compare commits
No commits in common. "6a93dc60a7b4ca3a684edb10638e0743f7f34d9d" and "728283543050f1e82e2476a021aff60f1b88012a" have entirely different histories.
6a93dc60a7
...
7282835430
|
@ -41,10 +41,9 @@ func queueHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
defer conn.Close()
|
||||
|
||||
raddr := conn.RemoteAddr()
|
||||
log.Printf("%s 建立连接 当前unity处理机器数量 %d", raddr, DequeueHandler.RefCountAdd(1))
|
||||
log.Println("建立连接", DequeueHandler.RefCountAdd(1))
|
||||
defer func() {
|
||||
log.Printf("%s 退出连接 当前unity处理机器数量 %d", raddr, DequeueHandler.RefCountAdd(-1))
|
||||
log.Println("退出连接", DequeueHandler.RefCountAdd(-1))
|
||||
}()
|
||||
|
||||
for {
|
||||
|
@ -87,7 +86,7 @@ func queueHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
// 打印消息
|
||||
fmt.Printf("%s 的数据 推送到unity. source: [%s]\n", conn.RemoteAddr(), item.Source)
|
||||
fmt.Printf("%s 的数据 推送到unity. source %s\n", conn.RemoteAddr(), item.Source)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user