Repository navigation
fix(http): decode and encode packs off the async workers - #174
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
put_records decoded its pack, and PackResponse encoded a fetch's, on the async workers: concurrent large transfers could hold them all and stall every other request. Both now happen inside the call, on the blocking thread pool: call takes a closure failing with an HttpError as well as a ServiceError, and a fetch's PackResponse is built, encoded, in it.
PiquelChips
force-pushed
the
fix/refuse-malformed-requests-as-an-apierror
branch
from
November 22, 2026 20:22
705515a to
72b9471
Compare
PiquelChips
force-pushed
the
fix/decode-and-encode-packs-off-the
branch
from
November 22, 2026 20:22
8dc0585 to
4767eaa
Compare
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.
put_recordsdecoded its pack, andPackResponseencoded a fetch's, on the async workers. Concurrent large transfers could hold every worker and stall unrelated requests. Both now run inside the call, on the blocking thread pool.calltakes a closure that can fail with anHttpErroras well as aServiceError, soput_recordsdecodes inside it, and a fetch builds itsPackResponse, already encoded, inside the service closure. A bonus: a put to a repository the caller can't see is now refused before the pack is decoded.Part of #166.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)