Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
a1c05d0 to
73fbb3f
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
73fbb3f to
74e9cc2
Compare
74e9cc2 to
eb9f084
Compare
f5d6bc1 to
f384de3
Compare
f384de3 to
50f952f
Compare

Related: #36585.
Depends on bitcoin-core/libmultiprocess#403 (fixes bitcoin-core/libmultiprocess#385).
Motivation
During
Shutdown(),disconnectIncoming()closes existing IPC connections but leaves the listening socket open and present on disk. Auto-reconnecting IPC clients (such as mining clients likesv2-tporckpool) can reconnect in this window, acquiring a newEventLoopRefand causing~CapnpProtocol()to hang indefinitely waiting for the reconnected client (#36585).Change
src/ipc/capnp/protocol.cpp: Store thestd::shared_ptr<mp::Listener>handles returned bymp::ListenConnections()inCapnpProtocol::m_listeners, and stop/clear them onm_loop->syncat the start ofdisconnectIncoming()(before removing existingm_incoming_connections) and in~CapnpProtocol().