mirror of
https://github.com/apple/container.git
synced 2026-09-25 08:39:36 -04:00
forwarder: close backend channel immediately if frontend closes (#2260)
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user