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

Method ~TConnection

library/cpp/neh/https.cpp:385–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 inline ~TConnection() {
386 if (!!Socket && IsNotSocketClosedByOtherSide(*Socket)) {
387 if (!!Ssl) {
388 ResetBIO();
389 // do not wait for shutdown confirmation
390 Y_UNUSED(SSL_shutdown(Ssl.Get()));
391 }
392 }
393 ConnectionCache()->ActiveConnections.Dec();
394 }
395
396 void ResetBIO() {
397 if (!!Socket) {

Callers

nothing calls this directly

Calls 5

Y_UNUSEDFunction · 0.85
ConnectionCacheFunction · 0.85
GetMethod · 0.45
DecMethod · 0.45

Tested by

no test coverage detected