aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/http.cpp
diff options
context:
space:
mode:
authorjimmy <jimmy@yandex-team.ru>2022-02-10 16:49:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:38 +0300
commit5ab412f19b9312abbfa362391df45d6603bb84c3 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/server/http.cpp
parentaffdafdb1fc09bf0bfc384355143ee6db9e90046 (diff)
downloadydb-5ab412f19b9312abbfa362391df45d6603bb84c3.tar.gz
Restoring authorship annotation for <jimmy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/http.cpp')
-rw-r--r--library/cpp/http/server/http.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index 13e3832f533..128583bdd70 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -197,8 +197,8 @@ public:
ListenStartEvent.Reset();
try {
- ListenThread.Reset(new TThread(ListenSocketFunction, this));
- ListenThread->Start();
+ ListenThread.Reset(new TThread(ListenSocketFunction, this));
+ ListenThread->Start();
} catch (const yexception&) {
SaveErrorCode();
return false;
@@ -214,9 +214,9 @@ public:
Cb_->OnWait();
TGuard<TMutex> g(StopMutex);
if (ListenThread) {
- ListenThread->Join();
+ ListenThread->Join();
ListenThread.Reset(nullptr);
- }
+ }
}
void Stop() {
@@ -224,9 +224,9 @@ public:
TGuard<TMutex> g(StopMutex);
if (ListenThread) {
- ListenThread->Join();
+ ListenThread->Join();
ListenThread.Reset(nullptr);
- }
+ }
while (ConnectionCount) {
usleep(10000);
@@ -398,7 +398,7 @@ public:
}
TImpl(THttpServer* parent, ICallBack* cb, TMtpQueueRef mainWorkers, TMtpQueueRef failWorkers, const TOptions& options_)
- : Requests(mainWorkers)
+ : Requests(mainWorkers)
, FailRequests(failWorkers)
, Options_(options_)
, Cb_(cb)
@@ -442,7 +442,7 @@ public:
return Options_.MaxConnections && ((size_t)GetClientCount() >= Options_.MaxConnections);
}
- THolder<TThread> ListenThread;
+ THolder<TThread> ListenThread;
TPipeHandle ListenWakeupReadFd;
TPipeHandle ListenWakeupWriteFd;
TSystemEvent ListenStartEvent;