From 8569af06ea8b51b27e624b69b1903ce416d87285 Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 7 May 2023 01:26:46 +0000 Subject: [PATCH] 1 --- server/wsproxy/constant.h | 2 +- server/wsproxy/upstream.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }