aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/options.h
diff options
context:
space:
mode:
authorkulikov <kulikov@yandex-team.com>2023-08-22 22:35:57 +0300
committerkulikov <kulikov@yandex-team.com>2023-08-22 22:51:44 +0300
commitd6e7da05041ff86e301b9546870b41211945aec2 (patch)
tree4bbe1aafd7e1938ed0a57d2e642c66608ff6760b /library/cpp/http/server/options.h
parent7c7ade4dcfda98626af0dd7eb774a855ba1111f5 (diff)
downloadydb-d6e7da05041ff86e301b9546870b41211945aec2.tar.gz
one shot poller
With WaitReadOneShot: - there is no need to do Unwait on connection activation, one less syscall per request; - this allows to make several listener threads over one epoll poller. Turn option on for search daemons (check it turned on by default here https://a.yandex-team.ru/review/4372795/details).
Diffstat (limited to 'library/cpp/http/server/options.h')
-rw-r--r--library/cpp/http/server/options.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h
index 5976d58f32..8a83f4f6db 100644
--- a/library/cpp/http/server/options.h
+++ b/library/cpp/http/server/options.h
@@ -139,6 +139,12 @@ public:
return *this;
}
+ inline THttpServerOptions& SetOneShotPoll(bool v) {
+ OneShotPoll = v;
+
+ return *this;
+ }
+
struct TAddr {
TString Addr;
ui16 Port;
@@ -174,4 +180,6 @@ public:
TString ListenThreadName = "HttpListen";
TString RequestsThreadName = "HttpServer";
TString FailRequestsThreadName = "HttpServer";
+
+ bool OneShotPoll = false;
};