[3.2 -> main] Backport SHiP fixes from eosio/eos release/2.2.x #638
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of
state_history_plugin
fixes: EOSIO/eos#10608From the backport:
Additional changes:
session_manager_t
and use post to main thread sosession_set
is only accessed from main thread.named_thread_pool
to simplify SHiP thread. Older versions of boost do not provide anacceptor
that takes astrand
in constructor, so rely on implicit strand of single thread runningio_context
which is much simpler than wrapping all calls inboost::asio::bind_executor
.Reproduced the crash of #592. After this PR, was unable to reproduce #592 crash.
This PR does not include
accept
too_many_files_open
fix: #603#577 has some of these changes already but takes a slightly different approach. I've updated #577 with the thread separation changes of this PR, see #628.
Resolves #592
Merges #624 (
release/3.2
) intomain
. These changes have also been applied in #628 along with other cleanups.