close outbound ray on error

pull/684/head^2
Darien Raymond 2017-10-24 17:33:28 +02:00
parent 522ac2a2e9
commit 0f27e0b4d3
1 changed files with 1 additions and 0 deletions

View File

@ -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)