Revert "refactor (remove TimeoutOnly)"

This reverts commit 723ef2b8e6.
This commit is contained in:
Meo597
2026-07-08 22:44:16 +08:00
parent 723ef2b8e6
commit 95c960977b
14 changed files with 71 additions and 14 deletions
+4
View File
@@ -83,6 +83,10 @@ func (o *Outbound) Process(ctx context.Context, link *transport.Link, dialer int
return errors.New("failed to connect to server").Base(err)
}
if session.TimeoutOnlyFromContext(ctx) {
ctx = context.WithoutCancel(ctx)
}
if network == net.Network_TCP {
serverConn := o.method.DialEarlyConn(connection, singbridge.ToSocksaddr(destination))
var handshake bool