Skip to content

Commit

Permalink
debug: ignore readtrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 28, 2023
1 parent 27be26a commit fa44790
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions connection_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,10 @@ func (c *connection) waitRead(n int) (err error) {
return Exception(ErrConnClosed, "wait read")
default:
err = <-c.readTrigger
if err != nil {
return err
}
//if err != nil {
// return err
//}
continue
}
}
return nil
Expand Down Expand Up @@ -446,9 +447,9 @@ func (c *connection) waitReadWithTimeout(n int) (err error) {
}
return Exception(ErrReadTimeout, c.remoteAddr.String())
case err = <-c.readTrigger:
if err != nil {
return err
}
//if err != nil {
// return err
//}
continue
}
}
Expand Down

0 comments on commit fa44790

Please sign in to comment.