fix: tuic connection error using fast_open

This commit is contained in:
gVisor bot 2023-04-29 15:44:07 +00:00
parent 7160fb2a4b
commit bc15a8d757

View file

@ -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))