diff options
| author | ilnurkh <[email protected]> | 2024-06-05 03:48:00 +0300 |
|---|---|---|
| committer | ilnurkh <[email protected]> | 2024-06-05 03:57:22 +0300 |
| commit | e16cc41459dc74c94769ca6b0693af2e4a86206a (patch) | |
| tree | 9637c971c7441f3c1d3d293670e9c979eff743d8 /library/cpp/http/server | |
| parent | 10990769aa01828e95701ecd00656c099b9e2b96 (diff) | |
[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')
| -rw-r--r-- | library/cpp/http/server/options.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h index f03bd5250e5..d0b4f5d6234 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 |
