diff options
| author | uzhas <[email protected]> | 2022-02-10 16:47:06 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:06 +0300 |
| commit | 2002caab389ddffd0e7db4d8c4db835fa4c99f83 (patch) | |
| tree | 9d3448d5ba97edddf88aa69bcb138e88286e8176 /library/cpp/http/server/http.cpp | |
| parent | 17d51d51855dc3ed663d0e31fa75d3ff5ab80702 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server/http.cpp')
| -rw-r--r-- | library/cpp/http/server/http.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp index 128583bdd70..7cbd4494e86 100644 --- a/library/cpp/http/server/http.cpp +++ b/library/cpp/http/server/http.cpp @@ -136,12 +136,12 @@ public: }; static void* ListenSocketFunction(void* param) { - try { - ((TImpl*)param)->ListenSocket(); - } catch (...) { - - } + try { + ((TImpl*)param)->ListenSocket(); + } catch (...) { + } + return nullptr; } @@ -798,11 +798,11 @@ bool TRequestReplier::Reply(void* threadSpecificResource) { bool TryToBindAddresses(const THttpServerOptions& options, const std::function<void(TSocket)>* callbackOnBoundAddress) { THttpServerOptions::TBindAddresses addrs; - try { - options.BindAddresses(addrs); + try { + options.BindAddresses(addrs); } catch (const std::exception&) { return false; - } + } for (const auto& na : addrs) { for (TNetworkAddress::TIterator ai = na.Begin(); ai != na.End(); ++ai) { |
