trigger waitRead to return in SetReadDeadline

This commit is contained in:
xtaci
2020-02-09 18:33:05 +08:00
parent 0d0f7cd655
commit d2d7690bcc
+1
View File
@@ -447,6 +447,7 @@ func (s *Stream) GetDieCh() <-chan struct{} {
// A zero time value disables the deadline.
func (s *Stream) SetReadDeadline(t time.Time) error {
s.readDeadline.Store(t)
s.notifyReadEvent()
return nil
}