aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/options.h
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2024-06-05 03:48:00 +0300
committerilnurkh <ilnurkh@yandex-team.com>2024-06-05 03:57:22 +0300
commite16cc41459dc74c94769ca6b0693af2e4a86206a (patch)
tree9637c971c7441f3c1d3d293670e9c979eff743d8 /library/cpp/http/server/options.h
parent10990769aa01828e95701ecd00656c099b9e2b96 (diff)
downloadydb-e16cc41459dc74c94769ca6b0693af2e4a86206a.tar.gz
[kernel/server] [library/cpp/http/server] enable timeout for reading from socket by default
анонс https://at.yandex-team.ru/clubs/arcadia/30286 77f0f6dfa6c3bc8c2a8428ecf91cd76b22bdb60e
Diffstat (limited to 'library/cpp/http/server/options.h')
-rw-r--r--library/cpp/http/server/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h
index f03bd5250e..d0b4f5d623 100644
--- a/library/cpp/http/server/options.h
+++ b/library/cpp/http/server/options.h
@@ -178,7 +178,7 @@ public:
ui32 MaxConnections = 100;
int ListenBacklog = SOMAXCONN;
ui32 EpollMaxEvents = 1;
- TDuration ClientTimeout;
+ TDuration ClientTimeout = TDuration::Minutes(1);
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