From 0c3d216cf3cb1f6bc1f168aaf3061e7355b7204a Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Tue, 23 Oct 2018 14:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Replace=E7=9A=84Detach?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E5=8E=9F=E5=AE=9E=E7=8E=B0=E5=9C=A8?= =?UTF-8?q?detach=E8=AF=A5session=E5=90=8E=EF=BC=8C=E8=A7=A6=E5=8F=91END?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=97=B6=E5=AF=BC=E8=87=B4=E6=AE=B5=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/pangu-http/src/pangu_http.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/business/pangu-http/src/pangu_http.cpp b/plugin/business/pangu-http/src/pangu_http.cpp index 3853526..9d3f464 100644 --- a/plugin/business/pangu-http/src/pangu_http.cpp +++ b/plugin/business/pangu-http/src/pangu_http.cpp @@ -585,6 +585,7 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio if (to_write_sess == NULL) //fail to wirte, abandon. { TFE_STREAM_LOG_INFO(stream, "tfe_http_session_allow_write() %s failed.", session->req->req_spec.uri); + ctx->action = PG_ACTION_NONE; tfe_http_session_detach(session); return; } @@ -602,6 +603,7 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio else { TFE_STREAM_LOG_INFO(stream, "Can only setup replace on REQ/RESP headers, detached."); + ctx->action = PG_ACTION_NONE; tfe_http_session_detach(session); return; } }