From 9af561dc1043bb952d7beb30c3cc4421422fe5e7 Mon Sep 17 00:00:00 2001 From: amass Date: Thu, 12 Dec 2024 21:15:06 +0800 Subject: [PATCH] update boost 1.87 --- HttpProxy/ProxyListener.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HttpProxy/ProxyListener.cpp b/HttpProxy/ProxyListener.cpp index 077a498..d7a8153 100644 --- a/HttpProxy/ProxyListener.cpp +++ b/HttpProxy/ProxyListener.cpp @@ -26,7 +26,11 @@ void ProxyListener::run(boost::system::error_code &error) { return; } +#if BOOST_VERSION < 108700 m_acceptor.listen(boost::asio::ip::tcp::socket::max_connections, error); +#else + m_acceptor.listen(boost::asio::socket_base::max_listen_connections, error); +#endif if (error) { LOG(error) << error.message(); return;