MCPcopy Create free account
hub / github.com/ceph/ceph / shutdown_socket

Method shutdown_socket

src/msg/async/AsyncConnection.cc:650–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void AsyncConnection::shutdown_socket() {
651 for (auto &&t : register_time_events) center->delete_time_event(t);
652 register_time_events.clear();
653 if (last_tick_id) {
654 center->delete_time_event(last_tick_id);
655 last_tick_id = 0;
656 }
657 if (cs) {
658 center->delete_file_event(cs.fd(), EVENT_READABLE | EVENT_WRITABLE);
659 cs.shutdown();
660 cs.close();
661 }
662}
663
664void AsyncConnection::DelayedDelivery::do_request(uint64_t id)
665{

Callers 2

reuse_connectionMethod · 0.45
replaceMethod · 0.45

Calls 6

delete_time_eventMethod · 0.80
delete_file_eventMethod · 0.80
clearMethod · 0.45
fdMethod · 0.45
shutdownMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected