From 0f27e0b4d3e4c1789cd38f75871b28d57dcb3269 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 24 Oct 2017 17:33:28 +0200 Subject: [PATCH] close outbound ray on error --- app/proxyman/outbound/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go index d9d7d86b7..8c6d4bbd3 100644 --- a/app/proxyman/outbound/handler.go +++ b/app/proxyman/outbound/handler.go @@ -78,6 +78,7 @@ func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay) { err := h.mux.Dispatch(ctx, outboundRay) if err != nil { log.Trace(newError("failed to process outbound traffic").Base(err)) + outboundRay.OutboundOutput().CloseError() } } else { err := h.proxy.Process(ctx, outboundRay, h)