From 2a4e4619f34a742e36693e589e0431347a72979b Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 13 十月 2020 17:36:32 +0800 Subject: [PATCH] update --- src/socket/net_mod_server_socket.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/socket/net_mod_server_socket.h b/src/socket/net_mod_server_socket.h index 13e43f7..4ec5b90 100644 --- a/src/socket/net_mod_server_socket.h +++ b/src/socket/net_mod_server_socket.h @@ -23,7 +23,7 @@ int nready; /* Number of ready descriptors from select */ int maxi; /* Highwater index into client array */ int clientfd[FD_SETSIZE]; /* Set of active descriptors */ - rio_t clientrio[FD_SETSIZE]; /* Set of active read buffers */ + // rio_t clientrio[FD_SETSIZE]; /* Set of active read buffers */ } ; private: @@ -31,13 +31,15 @@ ShmModSocket shmModSocket; pool pool; - void *buf = NULL; + void *buf; + void *topic_buf; size_t max_buf; + size_t max_topic_buf; void init_pool(int listenfd); void add_client(int connfd); void check_clients(); - int process_client(rio_t *rio, int connfd); + int process_client(int connfd); public: -- Gitblit v1.8.0