MCPcopy Create free account
hub / github.com/apache/qpid-proton / fail

Method fail

cpp/src/credit_test.cpp:198–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 void fail(const std::string &msg, int rcv) {
199 // Call from work_queue. Remember the exception later.
200 std::ostringstream os;
201 os << msg << rcv;
202 fail_msg_ = os.str();
203 receiver_.connection().close();
204 }
205
206 void on_connection_close(proton::connection& c) override {
207 if (!fail_msg_.empty())

Callers

nothing calls this directly

Calls 3

strMethod · 0.45
closeMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected