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()) {