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

Method TClientConnection

library/cpp/http/server/http.cpp:595–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595TClientConnection::TClientConnection(const TSocket& s, THttpServer::TImpl* serv, NAddr::IRemoteAddrRef listenerSockAddrRef)
596 : Socket_(s)
597 , ListenerSockAddrRef_(listenerSockAddrRef)
598 , HttpServ_(serv)
599{
600 SetNoDelay(Socket_, true);
601
602 const TDuration& clientTimeout = HttpServ_->Options().ClientTimeout;
603 if (clientTimeout != TDuration::Zero()) {
604 SetSocketTimeout(Socket_, (long)clientTimeout.Seconds(), clientTimeout.MilliSecondsOfSecond());
605 }
606
607 HttpServ_->IncreaseConnections();
608}
609
610TClientConnection::~TClientConnection() {
611 if (!CleanupState_.Closed) {

Callers

nothing calls this directly

Calls 7

SetNoDelayFunction · 0.85
ZeroFunction · 0.85
SetSocketTimeoutFunction · 0.85
MilliSecondsOfSecondMethod · 0.80
IncreaseConnectionsMethod · 0.80
OptionsMethod · 0.45
SecondsMethod · 0.45

Tested by

no test coverage detected