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
@@ -214,6 +214,10 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, d internet.
}
}
if session.TimeoutOnlyFromContext(ctx) {
ctx = context.WithoutCancel(ctx)
}
ctx, cancel := context.WithCancel(ctx)
terminate := func() {
cancel()