aa
This commit is contained in:
@@ -167,6 +167,7 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-timeoutChan:
|
case <-timeoutChan:
|
||||||
|
globals.SugarLogger.Debugf("HandleTcpMessages timeout")
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
//一直读?
|
//一直读?
|
||||||
@@ -195,6 +196,7 @@ func (t *TcpClient) doPrint(key string) (err error) {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-timeoutChan:
|
case <-timeoutChan:
|
||||||
|
globals.SugarLogger.Debugf("doPrint timeout")
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
printMsg, ok := <-t.MsgMap[key]
|
printMsg, ok := <-t.MsgMap[key]
|
||||||
@@ -269,6 +271,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-timeoutChan:
|
case <-timeoutChan:
|
||||||
|
globals.SugarLogger.Debugf("HandleCheckTcpHeart timeout")
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user