must be called only from asio thread
| 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) { |