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

Method TConnection

library/cpp/neh/https.cpp:378–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377 struct TConnection {
378 inline TConnection(TSocketRef& s, const TResolvedHost host) noexcept
379 : Socket(s)
380 , Host(host)
381 {
382 ConnectionCache()->ActiveConnections.Inc();
383 }
384
385 inline ~TConnection() {
386 if (!!Socket && IsNotSocketClosedByOtherSide(*Socket)) {

Callers

nothing calls this directly

Calls 2

ConnectionCacheFunction · 0.85
IncMethod · 0.45

Tested by

no test coverage detected