diff --git a/server/wsproxy/constant.h b/server/wsproxy/constant.h index bd6c99a..f30f340 100644 --- a/server/wsproxy/constant.h +++ b/server/wsproxy/constant.h @@ -26,7 +26,7 @@ enum InnerMesssage_e enum IoContext_e { IC_Master, - IC_Upstream, + IC_UpStream, IC_Max }; diff --git a/server/wsproxy/upstream.cc b/server/wsproxy/upstream.cc index 74108f5..caccc08 100644 --- a/server/wsproxy/upstream.cc +++ b/server/wsproxy/upstream.cc @@ -34,7 +34,7 @@ void UpStream::Init(int instance_id, const std::string& remote_ip, int remote_po last_pong_tick = a8::XGetTickCount(); recv_buff_ = (char*) malloc(PACK_MAX * 2); #ifdef USE_ASIO - auto io_context = IoMgr::Instance()->GetIoContext(IC_Master); + auto io_context = IoMgr::Instance()->GetIoContext(IC_UpStream); if (!io_context) { abort(); }