Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/workerd/io/worker-interface.c++
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ kj::Promise<void> RpcWorkerInterface::request(kj::HttpMethod method,
const kj::HttpHeaders& headers,
kj::AsyncInputStream& requestBody,
Response& response) {
auto inner = httpOverCapnpFactory.capnpToKj(dispatcher.getHttpServiceRequest().send().getHttp());
// The HttpService is used for this one request and then dropped, so the call that fetches it
// is sent for pipelining only: the dispatcher need not send its result back.
auto inner = httpOverCapnpFactory.capnpToKj(
dispatcher.getHttpServiceRequest().sendForPipeline().getHttp());
auto promise = inner->request(method, url, headers, requestBody, response);
return promise.attach(kj::mv(inner));
}
Expand All @@ -447,7 +450,8 @@ kj::Promise<void> RpcWorkerInterface::connect(kj::StringPtr host,
kj::AsyncIoStream& connection,
ConnectResponse& tunnel,
kj::HttpConnectSettings settings) {
auto inner = httpOverCapnpFactory.capnpToKj(dispatcher.getHttpServiceRequest().send().getHttp());
auto inner = httpOverCapnpFactory.capnpToKj(
dispatcher.getHttpServiceRequest().sendForPipeline().getHttp());
auto promise = inner->connect(host, headers, connection, tunnel, kj::mv(settings));
return promise.attach(kj::mv(inner));
}
Expand Down
Loading