forwarder: close backend channel immediately if frontend closes (#2260)

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
Eric Ernst
2026-09-11 12:08:27 -07:00
committed by GitHub
parent b61450b6e8
commit 33ebc8ae67
+1 -1
View File
@@ -62,7 +62,7 @@ extension ConnectHandler {
case .success(let channel):
guard context.channel.isActive else {
self.log?.trace("backend - frontend channel closed, closing backend connection")
context.channel.close(promise: nil)
channel.close(promise: nil)
return
}
self.log?.trace("backend - connected")