From 0be1ed5284de10ea5f1179e7f4b987f22cbe72b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveirinha?= Date: Thu, 27 Apr 2023 19:49:56 +0100 Subject: [PATCH] TUN-7398: Add support for quic safe stream to set deadline --- quic/safe_stream.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quic/safe_stream.go b/quic/safe_stream.go index c151ff2e..e19faa5c 100644 --- a/quic/safe_stream.go +++ b/quic/safe_stream.go @@ -52,3 +52,7 @@ func (s *SafeStreamCloser) CloseWrite() error { // We can still read from this stream. return s.stream.Close() } + +func (s *SafeStreamCloser) SetDeadline(deadline time.Time) error { + return s.stream.SetDeadline(deadline) +}