diff options
author | cherenkov-p-a <cherenkov-p-a@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
commit | 8124e2bb214b063687e0d77c900150c727e16782 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/server/options.h | |
parent | 9011d1fa16370ec024d20180d440f7ae6fd0e1c8 (diff) | |
download | ydb-8124e2bb214b063687e0d77c900150c727e16782.tar.gz |
Restoring authorship annotation for <cherenkov-p-a@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/options.h')
-rw-r--r-- | library/cpp/http/server/options.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h index 864f7c09e5..38eda0e5e7 100644 --- a/library/cpp/http/server/options.h +++ b/library/cpp/http/server/options.h @@ -118,12 +118,12 @@ public: return *this; } - inline THttpServerOptions& SetMaxRequestsPerConnection(size_t val) noexcept { - MaxRequestsPerConnection = val; - - return *this; - } - + inline THttpServerOptions& SetMaxRequestsPerConnection(size_t val) noexcept { + MaxRequestsPerConnection = val; + + return *this; + } + /// Use TElasticQueue instead of TThreadPool for request queues inline THttpServerOptions& EnableElasticQueues(bool enable) noexcept { UseElasticQueues = enable; @@ -164,7 +164,7 @@ public: TDuration ClientTimeout; size_t OutputBufferSize = 0; ui64 MaxInputContentLength = sizeof(size_t) <= 4 ? 2_GB : 64_GB; - size_t MaxRequestsPerConnection = 0; // If keep-alive is enabled, request limit before connection is closed + size_t MaxRequestsPerConnection = 0; // If keep-alive is enabled, request limit before connection is closed bool UseElasticQueues = false; TDuration PollTimeout; // timeout of TSocketPoller::WaitT call |