aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.ru>2022-02-10 16:47:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:33 +0300
commitcba5d9a444e2cfe105f55ccda66cd21d50440017 (patch)
tree79983e83d1a91aebeb1999338090eec69e24cc33 /library/cpp/http/server
parenteb540cc7a103419462d0cc870ca403966e2194c6 (diff)
downloadydb-cba5d9a444e2cfe105f55ccda66cd21d50440017.tar.gz
Restoring authorship annotation for <ivanmorozov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server')
-rw-r--r--library/cpp/http/server/http.cpp14
-rw-r--r--library/cpp/http/server/http.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index 128583bdd7..6180660246 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -660,14 +660,14 @@ bool TClientRequest::CheckLoopback() {
return true;
}
-void TClientRequest::ReleaseConnection() {
+void TClientRequest::ReleaseConnection() {
if (Conn_ && HttpConn_ && HttpServ()->Options().KeepAliveEnabled && HttpConn_->CanBeKeepAlive() && (!HttpServ()->Options().RejectExcessConnections || !HttpServ()->MaxRequestsReached())) {
- Output().Finish();
- Conn_->DeActivate();
+ Output().Finish();
+ Conn_->DeActivate();
Y_UNUSED(Conn_.Release());
- }
-}
-
+ }
+}
+
void TClientRequest::ResetConnection() {
if (HttpConn_) {
// send RST packet to client
@@ -706,7 +706,7 @@ void TClientRequest::Process(void* ThreadSpecificResource) {
}
if (Reply(ThreadSpecificResource)) {
- ReleaseConnection();
+ ReleaseConnection();
/*
* *this will be destroyed...
diff --git a/library/cpp/http/server/http.h b/library/cpp/http/server/http.h
index b292d38f27..e9e9c71c15 100644
--- a/library/cpp/http/server/http.h
+++ b/library/cpp/http/server/http.h
@@ -126,7 +126,7 @@ public:
bool CheckLoopback();
void ProcessFailRequest(int failstate);
- void ReleaseConnection();
+ void ReleaseConnection();
void ResetConnection();