From bec093524f09ca4caf9d789ae12e72ee2c2f7eca Mon Sep 17 00:00:00 2001 From: zhengchao Date: Tue, 18 Sep 2018 11:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/include/tfe_http.h | 2 +- plugin/protocol/http/src/http_entry.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/include/tfe_http.h b/common/include/tfe_http.h index 6a2faaa..f0ba194 100644 --- a/common/include/tfe_http.h +++ b/common/include/tfe_http.h @@ -350,7 +350,7 @@ void http_frame_raise_session_end(struct http_frame_session_ctx * ht_frame, stru void http_frame_raise_event(struct http_frame_session_ctx * ht_frame, const struct tfe_stream * stream, struct tfe_http_session * ht_session, enum tfe_http_event event, - const unsigned char * data, size_t datalen, unsigned int thread_id) + const unsigned char * data, size_t datalen, unsigned int thread_id); void http_frame_currect_plugin_detach(struct http_frame_session_ctx * ht_frame); int http_frame_currect_plugin_preempt(struct http_frame_session_ctx * ht_frame); diff --git a/plugin/protocol/http/src/http_entry.cpp b/plugin/protocol/http/src/http_entry.cpp index 0f25617..bbca1f3 100644 --- a/plugin/protocol/http/src/http_entry.cpp +++ b/plugin/protocol/http/src/http_entry.cpp @@ -44,8 +44,8 @@ static int __user_event_dispatch(struct http_half_private * hf_private, { struct user_event_dispatch_closure * __closure = (struct user_event_dispatch_closure *)user; struct http_frame_session_ctx* ht_frame = hf_private->session->ht_frame; - - http_frame_raise_event(ht_frame, __closure->stream, __closure->session, + //todo: + http_frame_raise_event(ht_frame, __closure->stream, (struct tfe_http_session *)__closure->session, ev, data, len, __closure->thread_id); return 0; }