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

Method process_timeout

cpp/examples/service_bus.cpp:183–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void process_timeout() {
184 proton::timestamp deadline = last_read + read_timeout;
185 proton::timestamp now = proton::timestamp::now();
186 if (now >= deadline) {
187 receiver.close();
188 closed = true;
189 receiver.connection().close();
190 if (message_count)
191 do_next_sequence();
192 else
193 std::cout << "Done. No more messages." << std::endl;
194 } else {
195 proton::duration next = deadline - now;
196 receiver.work_queue().schedule(next, [this]() { this->process_timeout(); });
197 }
198 }
199};
200
201

Callers 1

on_connection_openMethod · 0.95

Calls 6

do_next_sequenceFunction · 0.85
nowFunction · 0.50
closeMethod · 0.45
connectionMethod · 0.45
scheduleMethod · 0.45
work_queueMethod · 0.45

Tested by

no test coverage detected