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; }