In commit https://github.com/bitcoin-core/libmultiprocess/pull/361/changes/c5f093e48c0fd263fec82b84d83c6f8bb92abe39: proxy-io: rename Connection disconnect handlers to reflect scope
Good call on changing the name of the methods to match what they actually run, it a bit weird seeing a familiar name reused for a different method, but should become familiar soon enough
In proxy.cpp there are some documentation that still references the previous method behaviours, here is a diff that would update them
index afb02ce..e77c836 100644
--- a/src/mp/proxy.cpp
+++ b/src/mp/proxy.cpp
@@ -111,7 +111,7 @@ Connection::~Connection() noexcept(false)
// Connection destructor is always called on the event loop thread. If this
// is a local disconnect, it will trigger I/O, so this needs to run on the
// event loop thread, and if there was a remote disconnect, this is called
- // by an onDisconnect callback directly from the event loop thread.
+ // by an onRemoteDisconnect callback directly from the event loop thread.
assert(std::this_thread::get_id() == m_loop->m_thread_id);
// Try to cancel any calls that may be executing.
@@ -187,14 +187,14 @@ Connection::~Connection() noexcept(false)
// ProxyServer object destructors first, and then trigger an onDisconnect
// callback.
//
- // On incoming side of the connection, the onDisconnect callback is written
+ // On incoming side of the connection, the onRemoteDisconnect callback is written
// to delete the Connection object from the m_incoming_connections and call
- // this destructor which calls Connection::disconnect.
+ // this destructor.
//
// On the outgoing side, the Connection object is owned by top level client
- // object client, which onDisconnect handler doesn't have ready access to,
- // so onDisconnect handler just calls Connection::disconnect directly
- // instead.
+ // object client, which onRemoteDisconnect handler doesn't have ready access to,
+ // so onRemoteDisconnect handler just deletes the Connection object directly
+ // instead
//
// Either way disconnect code runs in the event loop thread and called both
// on clean and unclean shutdowns. In unclean shutdown case when the