浏览代码

close outbound ray on error

Darien Raymond 8 年之前
父节点
当前提交
0f27e0b4d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/proxyman/outbound/handler.go

+ 1 - 0
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)