Skip to content

Send getHttpService() for pipelining only in RpcWorkerInterface - #8960

Merged
cacheburner merged 1 commit into
mainfrom
milan/STOR-5970
Nov 28, 2026
Merged

cacheburner merged 1 commit into
mainfrom
milan/STOR-5970

Conversation

@cacheburner

Copy link
Copy Markdown
Collaborator

RpcWorkerInterface::request() and connect() call
EventDispatcher.getHttpService(), make one call on the HttpService it returns, and drop it. They never look at the result of getHttpService() itself, but because it was sent with send(), the dispatcher sent a Return for it and the caller a Release for the capability in it, on every hop between the two.

Send it with sendForPipeline() instead. For a Durable Object fetch in the Workers runtime this takes one request from 17 Cap'n Proto messages per hop to 15.

The HttpService capability no longer resolves, so calls on it are not path-shortened. It only ever carries the one request that is pipelined on it.

RpcWorkerInterface::request() and connect() call
EventDispatcher.getHttpService(), make one call on the HttpService
it returns, and drop it. They never look at the result of
getHttpService() itself, but because it was sent with send(), the
dispatcher sent a Return for it and the caller a Release for the
capability in it, on every hop between the two.

Send it with sendForPipeline() instead. For a Durable Object fetch
in the Workers runtime this takes one request from 17 Cap'n Proto
messages per hop to 15.

The HttpService capability no longer resolves, so calls on it are
not path-shortened. It only ever carries the one request that is
pipelined on it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@cacheburner cacheburner self-assigned this Nov 27, 2026
@cacheburner
cacheburner requested review from a team as code owners November 27, 2026 15:23

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — Small, well-scoped change in one file. The review found no issues.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code Quality: ✅ LGTM

No issues found.


Reviewed commit: a12d72b1

@cacheburner
cacheburner merged commit 1ee44db into main Nov 28, 2026
38 of 40 checks passed
@cacheburner
cacheburner deleted the milan/STOR-5970 branch November 28, 2026 01:38
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.

2 participants