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
@@ -131,6 +131,10 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
behaviorSeed := crc64.Checksum(hashkdf.Sum(nil), crc64.MakeTable(crc64.ISO))
if session.TimeoutOnlyFromContext(ctx) {
ctx = context.WithoutCancel(ctx)
}
session := encoding.NewClientSession(ctx, int64(behaviorSeed))
sessionPolicy := h.policyManager.ForLevel(request.User.Level)