From fe0f94e19a639b45108b1229c889c445edc7adef Mon Sep 17 00:00:00 2001 From: hindsight <hindsight@yandex-team.ru> Date: Thu, 10 Feb 2022 16:50:06 +0300 Subject: Restoring authorship annotation for <hindsight@yandex-team.ru>. Commit 1 of 2. --- library/cpp/coroutine/listener/listen.cpp | 6 +++--- library/cpp/coroutine/listener/listen.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'library/cpp/coroutine') diff --git a/library/cpp/coroutine/listener/listen.cpp b/library/cpp/coroutine/listener/listen.cpp index 3d4e711d1d..45dfe96509 100644 --- a/library/cpp/coroutine/listener/listen.cpp +++ b/library/cpp/coroutine/listener/listen.cpp @@ -73,9 +73,9 @@ private: if (opts.RecvBufSize) { SetInputBuffer(ListenSocket_, opts.RecvBufSize); } - if (opts.ReusePort) { - SetReusePort(ListenSocket_, opts.ReusePort); - } + if (opts.ReusePort) { + SetReusePort(ListenSocket_, opts.ReusePort); + } SetNonBlock(ListenSocket_); diff --git a/library/cpp/coroutine/listener/listen.h b/library/cpp/coroutine/listener/listen.h index 3a89cd3ecc..ae86839b20 100644 --- a/library/cpp/coroutine/listener/listen.h +++ b/library/cpp/coroutine/listener/listen.h @@ -20,7 +20,7 @@ public: , SendBufSize(0) , RecvBufSize(0) , EnableDeferAccept(false) - , ReusePort(false) + , ReusePort(false) { } @@ -49,16 +49,16 @@ public: } inline TOptions& SetReusePort(bool reusePort) noexcept { - ReusePort = reusePort; - - return *this; - } - + ReusePort = reusePort; + + return *this; + } + size_t ListenQueue; unsigned SendBufSize; unsigned RecvBufSize; bool EnableDeferAccept; - bool ReusePort; + bool ReusePort; }; class ICallBack { -- cgit v1.2.3