Skip to content

Commit

Permalink
webrtc: set read and write deadline on stream.SetDeadline
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 4, 2023
1 parent 9b72a82 commit 0b8b284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/transport/webrtc/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func (s *stream) LocalAddr() net.Addr { return s.laddr }
func (s *stream) RemoteAddr() net.Addr { return s.raddr }

func (s *stream) SetDeadline(t time.Time) error {
_ = s.SetReadDeadline(t)
return s.SetWriteDeadline(t)
}

Expand Down

0 comments on commit 0b8b284

Please sign in to comment.