From 3f22309b5158c5d87ba26bb1a9bdbac9dd883feb Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Tue, 14 Jul 2026 21:51:12 +0800 Subject: [PATCH] chore: respect the incoming context during JLS fallback --- transport/jls/jls.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/jls/jls.go b/transport/jls/jls.go index 1b283a986..db58ce68f 100644 --- a/transport/jls/jls.go +++ b/transport/jls/jls.go @@ -213,7 +213,9 @@ func relayFallback(ctx context.Context, inbound net.Conn, prefix []byte, config } inbound = N.NewCachedConn(inbound, prefix) upstream = newRateLimitedConn(upstream, config.RateLimit) - N.Relay(inbound, upstream) + if err = N.RelayContext(ctx, inbound, upstream); err != nil { + return err + } return ErrFallbackCompleted }