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