From a6f60ae3b5a4b811f69e44f4b178dbc805ec9bed Mon Sep 17 00:00:00 2001 From: Bob Chen Date: Mon, 23 Oct 2023 13:18:18 +0800 Subject: [PATCH] Prioritize epoll engine --- net/http/client.cpp | 2 +- photon.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/http/client.cpp b/net/http/client.cpp index efb6b3b0..de5f6a88 100644 --- a/net/http/client.cpp +++ b/net/http/client.cpp @@ -29,7 +29,7 @@ namespace photon { namespace net { namespace http { static const uint64_t kDNSCacheLife = 3600UL * 1000 * 1000; -static constexpr char USERAGENT[] = "EASE/0.21.6"; +static constexpr char USERAGENT[] = "PhotonLibOS_HTTP"; class PooledDialer { diff --git a/photon.cpp b/photon.cpp index a17cfe72..cafc770c 100644 --- a/photon.cpp +++ b/photon.cpp @@ -38,7 +38,7 @@ static thread_local uint64_t g_event_engine = 0, g_io_engine = 0; // Try to init master engine with the recommended order #if defined(__linux__) -static const int recommended_order[] = {INIT_EVENT_IOURING, INIT_EVENT_EPOLL, INIT_EVENT_SELECT}; +static const int recommended_order[] = {INIT_EVENT_EPOLL, INIT_EVENT_IOURING, INIT_EVENT_SELECT}; #else // macOS, FreeBSD ... static const int recommended_order[] = {INIT_EVENT_KQUEUE, INIT_EVENT_SELECT}; #endif