Skip to content

fix(http): decode and encode packs off the async workers - #174

Open
PiquelChips wants to merge 1 commit into
fix/refuse-malformed-requests-as-an-apierrorfrom
fix/decode-and-encode-packs-off-the
Open

PiquelChips wants to merge 1 commit into
fix/refuse-malformed-requests-as-an-apierrorfrom
fix/decode-and-encode-packs-off-the

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

put_records decoded its pack, and PackResponse encoded 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. call takes a closure that can fail with an HttpError as well as a ServiceError, so put_records decodes inside it, and a fetch builds its PackResponse, 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)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: da5bca5c-4967-4f82-9a57-d4c298b0699e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
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
PiquelChips force-pushed the fix/refuse-malformed-requests-as-an-apierror branch from 705515a to 72b9471 Compare November 22, 2026 20:22
@PiquelChips
PiquelChips force-pushed the fix/decode-and-encode-packs-off-the branch from 8dc0585 to 4767eaa Compare November 22, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant