From 94242de81c01e592a44d48ab17c9b96ced6d713b Mon Sep 17 00:00:00 2001 From: zhengchao Date: Sun, 9 Dec 2018 21:39:24 +0600 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8http=20block=E4=B8=AD=EF=BC=8Chttp=20r?= =?UTF-8?q?esponse=20body=E4=BA=8B=E4=BB=B6=E8=B0=83=E7=94=A8tfe=5Fhttp=5F?= =?UTF-8?q?session=5Fkill=E5=85=B3=E9=97=AD=E4=BC=9A=E8=AF=9D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/tcp_stream.cpp | 1 - plugin/business/pangu-http/src/pangu_http.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/src/tcp_stream.cpp b/platform/src/tcp_stream.cpp index d069cfd..34e6b22 100644 --- a/platform/src/tcp_stream.cpp +++ b/platform/src/tcp_stream.cpp @@ -353,7 +353,6 @@ static void __conn_private_destory_with_ssl(struct event_base * ev_base, static void __stream_bev_passthrough_readcb(struct bufferevent * bev, void * arg) { struct tfe_stream_private * _stream = (struct tfe_stream_private *) arg; - struct tfe_proxy * _proxy = _stream->proxy_ref; struct tfe_conn_private * peer_conn = __peer_conn(_stream, __bev_dir(_stream, bev)); struct evbuffer * __input_buffer = bufferevent_get_input(bev); diff --git a/plugin/business/pangu-http/src/pangu_http.cpp b/plugin/business/pangu-http/src/pangu_http.cpp index bdf54ed..353489c 100644 --- a/plugin/business/pangu-http/src/pangu_http.cpp +++ b/plugin/business/pangu-http/src/pangu_http.cpp @@ -884,7 +884,8 @@ static void http_reject(const struct tfe_http_session * session, enum tfe_http_e } else { - //TODO: close http session. + to_write_sess = tfe_http_session_allow_write(session); + tfe_http_session_kill(to_write_sess); } return; }