read 에러 시 return

main
JungJun 3 years ago
parent c865223db8
commit 0f3b9c8c29

@ -140,9 +140,11 @@ func StatsCommand(t *icsnet.IcsTCPNet, bufend string) {
if rerr.GetError() != io.EOF { if rerr.GetError() != io.EOF {
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]", l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]",
rerr.GetError(), rlen, len(statReads)) rerr.GetError(), rlen, len(statReads))
// 여기서 listen인데
t.Close()
return
// t.Close() // t.Close()
} }
continue
} else { } else {
seqId := fmt.Sprintf("%05d", count) seqId := fmt.Sprintf("%05d", count)
fmt.Printf("Recved Stat Command(%s) %d \n", statReads, rlen) fmt.Printf("Recved Stat Command(%s) %d \n", statReads, rlen)

Loading…
Cancel
Save