aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/neh
diff options
context:
space:
mode:
authorgalaxycrab <UgnineSirdis@ydb.tech>2022-10-26 19:03:15 +0300
committergalaxycrab <UgnineSirdis@ydb.tech>2022-10-26 19:03:15 +0300
commit608252fc836bcc17fd845053126f1e60bee2f767 (patch)
tree9e44fb87310b895462aecac3f58fed65518f5f39 /library/cpp/neh
parent7a8c83ad951880f91a587a3d7c772e05b7e2b61b (diff)
downloadydb-608252fc836bcc17fd845053126f1e60bee2f767.tar.gz
Fix incorrect base class for TEvStateRequest
Diffstat (limited to 'library/cpp/neh')
-rw-r--r--library/cpp/neh/http2.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/cpp/neh/http2.cpp b/library/cpp/neh/http2.cpp
index fb8b08fd81..e4b024d093 100644
--- a/library/cpp/neh/http2.cpp
+++ b/library/cpp/neh/http2.cpp
@@ -1563,7 +1563,10 @@ namespace {
size_t buffPos = 0;
//DBGOUT("receive and parse: " << TStringBuf(Buff_.Get(), amount));
while (P_->Parse(Buff_.Get() + buffPos, amount - buffPos)) {
- SeenMessageWithoutKeepalive_ |= !P_->IsKeepAlive() || LeftRequestsToDisconnect_ == 1;
+ if (!P_->IsKeepAlive() || LeftRequestsToDisconnect_ == 1) {
+ SeenMessageWithoutKeepalive_ = true;
+ }
+
char rt = *P_->FirstLine().data();
const size_t extraDataSize = P_->GetExtraDataSize();
if (rt == 'P' || rt == 'p') {
@@ -1858,7 +1861,7 @@ namespace {
THashMap<TAtomicBase, TResponseDataRef> ResponsesData_;
TAtomicBool Canceled_;
- bool SeenMessageWithoutKeepalive_ = false;
+ TAtomicBool SeenMessageWithoutKeepalive_ = false;
i32 LeftRequestsToDisconnect_ = -1;
};