diff options
| author | robot-piglet <[email protected]> | 2026-02-10 11:13:59 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-02-10 12:20:47 +0300 |
| commit | 40003bb3111d80ee7b48adfbaddcd9dcdf25dfe0 (patch) | |
| tree | 29978b36ab68039fcc84bbc90e66c7830b4b690b /library/cpp/netliba/v6/udp_http.cpp | |
| parent | 060cf1bd35080daf0038b2f15c2547503ec917d9 (diff) | |
Intermediate changes
commit_hash:d1060afa655a4f9d6d4599152e96f7d19f25a506
Diffstat (limited to 'library/cpp/netliba/v6/udp_http.cpp')
| -rw-r--r-- | library/cpp/netliba/v6/udp_http.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/cpp/netliba/v6/udp_http.cpp b/library/cpp/netliba/v6/udp_http.cpp index 10d2d4b7ed9..80bbcd525d4 100644 --- a/library/cpp/netliba/v6/udp_http.cpp +++ b/library/cpp/netliba/v6/udp_http.cpp @@ -4,8 +4,6 @@ #include "udp_socket.h" #include "cpu_affinity.h" -#include <library/cpp/deprecated/atomic_bool/bool.h> - #include <util/system/hp_timer.h> #include <util/thread/lfqueue.h> #include <util/system/thread.h> @@ -23,9 +21,9 @@ namespace NNetliba { const float HTTP_TIMEOUT = 15.0f; const int MIN_SHARED_MEM_PACKET = 1000; - static ::NAtomic::TBool PanicAttack; + static std::atomic<bool> PanicAttack = false; static std::atomic<NHPTimer::STime> LastHeartbeat; - static std::atomic<double> HeartbeatTimeout; + static std::atomic<double> HeartbeatTimeout = 0.0; static int GetPacketSize(TRequest* req) { if (req && req->Data.Get()) |
