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

Method OnAcceptFull

library/cpp/neh/https.cpp:1733–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1731 }
1732
1733 void OnAcceptFull(const TAcceptFull& a) override {
1734 try {
1735 TSocketRef s(new TSharedSocket(*a.S));
1736
1737 if (InputConnections()->ExceedHardLimit()) {
1738 s->Close();
1739 return;
1740 }
1741
1742 THolder<TRead> read(new TRead(new TSslServerIOStream(SslCtx_, s), this, /* selfRemove */ true));
1743 E_.Create(*read, "https-response");
1744 Y_UNUSED(read.Release());
1745 E_.Running()->Yield();
1746 } catch (...) {
1747 }
1748 }
1749
1750 void OnError() override {
1751 try {

Callers

nothing calls this directly

Calls 8

InputConnectionsFunction · 0.85
Y_UNUSEDFunction · 0.85
YieldMethod · 0.80
ExceedHardLimitMethod · 0.45
CloseMethod · 0.45
CreateMethod · 0.45
ReleaseMethod · 0.45
RunningMethod · 0.45

Tested by

no test coverage detected