Skip to content

Commit

Permalink
trigger waitRead to return in SetReadDeadline
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Feb 9, 2020
1 parent 0d0f7cd commit d2d7690
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d2d7690

Please sign in to comment.