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

Method Put

library/cpp/neh/http2.cpp:969–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 }
968
969 inline void Put(THttpConnRef& conn, size_t addrId) {
970 if (Y_LIKELY(!Shutdown_ && !ExceedHardLimit() && !CacheDisabled())) {
971 if (Y_UNLIKELY(addrId > (size_t)AtomicGet(MaxConnId_))) {
972 AtomicSet(MaxConnId_, addrId);
973 }
974 Cache_.Put(conn, addrId);
975 } else {
976 conn->Close();
977 conn.Drop();
978 }
979 }
980
981 inline size_t OnConnError(size_t addrId) {
982 return Cache_.Validate(addrId);

Callers 1

PutSelfToCacheMethod · 0.45

Calls 4

AtomicGetFunction · 0.50
AtomicSetFunction · 0.50
CloseMethod · 0.45
DropMethod · 0.45

Tested by

no test coverage detected