MCPcopy Create free account
hub / github.com/catboost/catboost / ReleaseConnection

Method ReleaseConnection

library/cpp/http/server/http.cpp:712–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712void TClientRequest::ReleaseConnection() {
713 if (Conn_ && HttpConn_ && HttpServ()->Options().KeepAliveEnabled && HttpConn_->CanBeKeepAlive() && (!HttpServ()->Options().RejectExcessConnections || !HttpServ()->MaxRequestsReached())) {
714 Output().Finish();
715 Conn_->DeActivate();
716 Y_UNUSED(Conn_.Release());
717 }
718}
719
720void TClientRequest::ResetConnection() {
721 if (HttpConn_) {

Callers

nothing calls this directly

Calls 7

Y_UNUSEDFunction · 0.85
DeActivateMethod · 0.80
OptionsMethod · 0.45
CanBeKeepAliveMethod · 0.45
MaxRequestsReachedMethod · 0.45
FinishMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected