From c479ef57baaaa28964fc3ec8d80ff99dffa7d49f Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期三, 10 十一月 2021 09:49:29 +0800 Subject: [PATCH] Fix the system hang issue when the app is killed contantly. --- src/net/net_mod_socket_wrapper.cpp | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/net/net_mod_socket_wrapper.cpp b/src/net/net_mod_socket_wrapper.cpp index 5233635..038e8cf 100644 --- a/src/net/net_mod_socket_wrapper.cpp +++ b/src/net/net_mod_socket_wrapper.cpp @@ -103,11 +103,6 @@ return sockt->sendandrecv(node_arr, arrlen, send_buf, send_size, recv_arr, recv_arr_size, err_arr, err_arr_size, -1); } -int net_mod_socket_bind_proc_id(void * _socket, char *proc_id, int len){ - NetModSocket *sockt = (NetModSocket *)_socket; - return sockt->bind_proc_id(proc_id, len); -} - void net_mod_socket_int_set(void * _socket, int data) { NetModSocket *sockt = (NetModSocket *)_socket; sockt->int_set(data); @@ -128,6 +123,16 @@ return sockt->svr_get(); } +void net_mod_socket_buf_data_set(void * _socket, std::string str, int val) { + NetModSocket *sockt = (NetModSocket *)_socket; + sockt->buf_data_set(str, val); +} + +int net_mod_socket_buf_data_get(void * _socket, std::string str) { + NetModSocket *sockt = (NetModSocket *)_socket; + return sockt->buf_data_get(str); +} + /** * 濡傛灉寤虹珛杩炴帴鐨勮妭鐐规病鏈夋帴鍙楀埌娑堟伅绛夊緟timeout鐨勬椂闂村悗杩斿洖 * @timeout 绛夊緟鏃堕棿锛屽崟浣嶆槸鍗冨垎涔嬩竴绉� -- Gitblit v1.8.0