From 36e6a90a33983154633c99f7ac95d09dd68f7bcb Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期三, 24 二月 2021 16:53:06 +0800 Subject: [PATCH] update --- src/net/net_mod_socket.cpp | 27 ++------------------------- 1 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/net/net_mod_socket.cpp b/src/net/net_mod_socket.cpp index a863f6d..2932d8c 100644 --- a/src/net/net_mod_socket.cpp +++ b/src/net/net_mod_socket.cpp @@ -15,37 +15,14 @@ NetModSocket::NetModSocket() { - int s; if (Signal(SIGPIPE, SIG_IGN) == SIG_ERR) logger->error(errno, "NetModSocket::NetModSocket signal"); - - // gpool = new NetConnPool(); - - // pthread_mutexattr_t mtxAttr; - // s = pthread_mutexattr_init(&mtxAttr); - // if (s != 0) - // err_exit(s, "pthread_mutexattr_init"); - // s = pthread_mutexattr_settype(&mtxAttr, PTHREAD_MUTEX_ERRORCHECK); - // if (s != 0) - // err_exit(s, "pthread_mutexattr_settype"); - // s = pthread_mutex_init(&sendMutex, &mtxAttr); - // if (s != 0) - // err_exit(s, "pthread_mutex_init"); - - // s = pthread_mutexattr_destroy(&mtxAttr); - // if (s != 0) - // err_exit(s, "pthread_mutexattr_destroy"); } NetModSocket::~NetModSocket() { - // int s; - // delete gpool; - // s = pthread_mutex_destroy(&sendMutex); - // if(s != 0) { - // err_exit(s, "shm_socket_close"); - // } + } @@ -193,7 +170,7 @@ err_arr[n_recv_err].key = node->key; err_arr[n_recv_err].code = ret; n_recv_err++; - logger->error("NetModSocket:: %d _sendandrecv_ to key %d failed, %s", get_key(), node->key, bus_strerror(ret)); + logger->error("NetModSocket:: _sendandrecv_ to key %d failed. %s", node->key, bus_strerror(ret)); } -- Gitblit v1.8.0