mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 02:56:47 +00:00
fix: tuic connection error using fast_open
This commit is contained in:
1 parent
a7233f6036
commit
6ecd1c31e5
1 file changed
+4
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user