Conversation
- Transport::inbound(): pre-emptive cull before destination-table insert; try/catch around insert for explicit OOM diagnostics - Transport::jobs(): split stale-entry culling into 5 independent per-phase try/catch blocks so a failure in one phase doesn't abort the others; reserve() before push_back loops in each phase - cull_path_table()/cull_known_destinations(): std::min_element fallback when sort-index allocation fails, breaking the cull-OOM-still-full loop - Identity::remember(): wrapped _known_destinations.insert in try/catch for explicit OOM diagnostic logging - Destination::announce(): outer try/catch covers all OOM-prone ops (Bytes concat, sign, Packet ctor, send); inner _path_responses.insert catch preserved for degraded-mode behavior - Packet::unpack(): dedicated std::bad_alloc catch returns false cleanly - Type.h: MAX_RECEIPTS and MAX_QUEUED_ANNOUNCES now overridable at compile time via RNS_RECEIPTS_MAX / RNS_QUEUED_ANNOUNCES_MAX - Transport.h: hashlist_maxsize and max_pr_tags exposed as runtime accessors for dynamic capacity tuning
Added more defines for setting storage and persistence limits: - RNS_RATE_TIMESTAMPS_MAX - RNS_RANDOM_BLOBS_PERSIST_MAX - RNS_RANDOM_BLOBS_MAX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
try/catch around insert for explicit OOM diagnostics
per-phase try/catch blocks so a failure in one phase doesn't abort
the others; reserve() before push_back loops in each phase
when sort-index allocation fails, breaking the cull-OOM-still-full loop
for explicit OOM diagnostic logging
(Bytes concat, sign, Packet ctor, send); inner _path_responses.insert
catch preserved for degraded-mode behavior
compile time via RNS_RECEIPTS_MAX / RNS_QUEUED_ANNOUNCES_MAX
accessors for dynamic capacity tuning