From b1efd4bb247c588f7c98a6ab85c99ab631678b5b Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 7 May 2023 07:27:47 +0000 Subject: [PATCH] 1 --- server/wsproxy/constant.h | 2 ++ server/wsproxy/master.cc | 2 -- server/wsproxy/upstream.cc | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/wsproxy/constant.h b/server/wsproxy/constant.h index 8b27483..ea29aa8 100644 --- a/server/wsproxy/constant.h +++ b/server/wsproxy/constant.h @@ -37,3 +37,5 @@ const int MAX_NODE_ID = 8; const int MAX_INSTANCE_ID = 500; const int ALLOC_TARGET_SERVER_SUCCESS_TIMER_EVENT = a8::TIMER_USER_EVENT + 1; + +const int PACK_MAX = 1024 * 64; diff --git a/server/wsproxy/master.cc b/server/wsproxy/master.cc index eda3a1b..72ce56c 100644 --- a/server/wsproxy/master.cc +++ b/server/wsproxy/master.cc @@ -13,8 +13,6 @@ #include "app.h" -const int PACK_MAX = 1024 * 64; - void Master::Init(int instance_id, const std::string& remote_ip, int remote_port) { this->instance_id = instance_id; diff --git a/server/wsproxy/upstream.cc b/server/wsproxy/upstream.cc index efae6a5..03d3f23 100644 --- a/server/wsproxy/upstream.cc +++ b/server/wsproxy/upstream.cc @@ -14,8 +14,6 @@ #include "app.h" -const int PACK_MAX = 1024 * 64 * 2; - void UpStream::Init(int instance_id, const std::string& remote_ip, int remote_port) { if (remote_ip.empty()) {