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

Method OnError

library/cpp/neh/https.cpp:1750–1759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1748 }
1749
1750 void OnError() override {
1751 try {
1752 throw;
1753 } catch (const TSystemError& e) {
1754 //crutch for prevent 100% busyloop (simple suspend listener/accepter)
1755 if (e.Status() == EMFILE) {
1756 E_.Running()->SleepT(TDuration::MilliSeconds(500));
1757 }
1758 }
1759 }
1760
1761 private:
1762 IOnRequest* CB_;

Callers

nothing calls this directly

Calls 4

MilliSecondsFunction · 0.85
SleepTMethod · 0.80
StatusMethod · 0.45
RunningMethod · 0.45

Tested by

no test coverage detected