This commit is contained in:
邹宗楠
2026-05-09 16:02:04 +08:00
parent 637a878808
commit d339ebb47b
3 changed files with 210 additions and 59 deletions

View File

@@ -48,12 +48,12 @@ func ListenTcp() {
if err := handleConn(c); err != nil {
c.Close()
Poll.Wait()
Poll.Stop()
Pool.Wait()
Pool.Stop()
return
}
}
Poll.AddJob(fn)
Pool.AddJob(fn)
}
}
@@ -200,7 +200,7 @@ func HandleTcpMessages(t *TcpClient, printNo string) {
return
}
}
Poll.AddJob(fn)
Pool.AddJob(fn)
}
func (t *TcpClient) readTimeoutMap(key string) bool {
@@ -331,7 +331,7 @@ func doPrint(t *TcpClient, key string) (err error) {
}
}
}
Poll.AddJob(fn)
Pool.AddJob(fn)
return err
}