mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
fix: tuic connection error using fast_open
This commit is contained in:
parent
a7233f6036
commit
6ecd1c31e5
@ -307,6 +307,10 @@ type earlyConn struct {
|
|||||||
RequestTimeout time.Duration
|
RequestTimeout time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (conn *earlyConn) ReaderReplaceable() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
func (conn *earlyConn) response() error {
|
func (conn *earlyConn) response() error {
|
||||||
if conn.RequestTimeout > 0 {
|
if conn.RequestTimeout > 0 {
|
||||||
_ = conn.SetReadDeadline(time.Now().Add(conn.RequestTimeout))
|
_ = conn.SetReadDeadline(time.Now().Add(conn.RequestTimeout))
|
||||||
|
Loading…
Reference in New Issue
Block a user