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

Method Release

library/cpp/neh/https.cpp:520–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 }
519
520 inline void Release(TConnectionRef conn) {
521 if (!ExceedHardLimit()) {
522 size_t maxConnId = MaxConnId_.load(std::memory_order_acquire);
523
524 while (maxConnId < (*conn)->Host.Id) {
525 MaxConnId_.compare_exchange_strong(
526 maxConnId,
527 (*conn)->Host.Id,
528 std::memory_order_seq_cst,
529 std::memory_order_seq_cst);
530 maxConnId = MaxConnId_.load(std::memory_order_acquire);
531 }
532 ConnList((*conn)->Host).Enqueue(conn);
533 CachedConnections.Inc();
534 ActiveConnections.Dec();
535 }
536
537 if (CachedConnections.Val() && ExceedSoftLimit()) {
538 SuggestPurgeCache();
539 }
540 }
541
542 void SetFdLimits(size_t soft, size_t hard) {
543 Limits.SetSoft(soft);

Callers 15

SendMethod · 0.45
SendWithHighPriorityMethod · 0.45
SendPingsIfNeededMethod · 0.45
DoSendsMethod · 0.45
GetDebugInfoFunction · 0.45
CreateHttpUdpRequesterFunction · 0.45
SendLowMethod · 0.45
ProcessDataPacketMethod · 0.45
RecvMethod · 0.45

Calls 6

loadMethod · 0.45
EnqueueMethod · 0.45
IncMethod · 0.45
DecMethod · 0.45
ValMethod · 0.45

Tested by

no test coverage detected