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

Method OnCanRead

library/cpp/neh/tcp2.cpp:889–897  ·  view source on GitHub ↗

must be called only from asio thread

Source from the content-addressed store, hash-verified

887
888 //must be called only from asio thread
889 void OnCanRead(const TErrorCode& ec, IHandlingContext& ctx) {
890 //DBGOUT("OnCanRead(" << ec.Value() << ")");
891 if (Y_UNLIKELY(ec)) {
892 OnErrorCode(ec);
893 } else {
894 TErrorCode ec2;
895 OnReadSome(ec2, AS_.ReadSome(Buff_.Get(), BuffSize_, ec2), ctx);
896 }
897 }
898
899 //must be called only from asio thread
900 void OnReadSome(const TErrorCode& ec, size_t amount, IHandlingContext& ctx) {

Callers

nothing calls this directly

Calls 2

ReadSomeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected