From 6ecd1c31e5ae292cd891421cdec7153c0b2e2a91 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sat, 29 Apr 2023 15:44:07 +0000 Subject: [PATCH] fix: tuic connection error using fast_open --- transport/tuic/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport/tuic/client.go b/transport/tuic/client.go index af00da03a..583eaba79 100644 --- a/transport/tuic/client.go +++ b/transport/tuic/client.go @@ -307,6 +307,10 @@ type earlyConn struct { RequestTimeout time.Duration } +func (conn *earlyConn) ReaderReplaceable() bool { + return false +} + func (conn *earlyConn) response() error { if conn.RequestTimeout > 0 { _ = conn.SetReadDeadline(time.Now().Add(conn.RequestTimeout))