From ca833c40d5b955d4e77b45b64f2523962754d0ba Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 26 Dec 2019 09:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=8C=83=E4=BE=8B=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/websocket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/api/tests/websocket.c b/api/tests/websocket.c index 7a39ee03..2ed6ffc9 100644 --- a/api/tests/websocket.c +++ b/api/tests/websocket.c @@ -48,6 +48,7 @@ typedef struct { void API_CALL on_mk_websocket_session_create(mk_tcp_session session){ log_printf(LOG_LEV,"%s %d",mk_tcp_session_peer_ip(session),(int)mk_tcp_session_peer_port(session)); websocket_user_data *user_data = malloc(sizeof(websocket_user_data)); + user_data->_session = session; mk_websocket_session_set_user_data(session,user_data); }