diff options
author | hindsight <hindsight@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
commit | a76f5e1efe665e1bb125f05ae275b2a6226517d9 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine | |
parent | fe0f94e19a639b45108b1229c889c445edc7adef (diff) | |
download | ydb-a76f5e1efe665e1bb125f05ae275b2a6226517d9.tar.gz |
Restoring authorship annotation for <hindsight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine')
-rw-r--r-- | library/cpp/coroutine/listener/listen.cpp | 6 | ||||
-rw-r--r-- | library/cpp/coroutine/listener/listen.h | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/coroutine/listener/listen.cpp b/library/cpp/coroutine/listener/listen.cpp index 45dfe96509..3d4e711d1d 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 ae86839b20..3a89cd3ecc 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 { |