From 0b8b284e894c49cd90c7408693861b8c0c0f5abd Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 3 Jul 2023 18:32:09 -0700 Subject: [PATCH] webrtc: set read and write deadline on stream.SetDeadline --- p2p/transport/webrtc/stream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/transport/webrtc/stream.go b/p2p/transport/webrtc/stream.go index 6ddae290b3..a402020e06 100644 --- a/p2p/transport/webrtc/stream.go +++ b/p2p/transport/webrtc/stream.go @@ -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) }