客户端忽略io timeout错误,服务器端定时发心跳

This commit is contained in:
lwch
2021-09-10 10:22:10 +08:00
parent cb1de7fc8c
commit 284ce6c7b2
3 changed files with 17 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ func (h *Handler) Handle(conn net.Conn) {
cli := clients.new(idx, c)
defer h.closeClient(cli)
go cli.keepalive()
cli.run()
}