Skip to content

Commit

Permalink
Prioritize epoll engine
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 24, 2023
1 parent 4349145 commit a6f60ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/http/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion photon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6f60ae

Please sign in to comment.