WIP Fix too many conn handling#232
Open
Fi3 wants to merge 2 commits into
Open
Conversation
Drain the pending shares buffer atomically each tick and POST in batches of 500 (~75-135 KB JSON, well under Rocket's 1 MiB default JSON limit). Failed chunks are requeued at the head of the buffer to be retried on the next tick instead of being silently retained on a single all-or-nothing request that would grow unbounded if the endpoint ever rejected the payload. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Use a configurable permit pool and accept backoff so new SV1 miners are only admitted when the proxy still has capacity. Report capacity exhaustion from the health check and fail fast when the translator handoff queue is saturated instead of letting ingress block. Make stats collection awaitable so the overload decision uses the current downstream count, and move routine connection lifecycle logging to debug so the real overload signals stay visible. Skip disconnect activity for unnamed workers to avoid noisy monitor events.
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.
No description provided.