Skip to content

Bound non-streaming response body reads in the OpenAPI plugin#1430

Merged
RhysSullivan merged 3 commits into
mainfrom
repro/openapi-body-read-timeout
Jul 18, 2026
Merged

Bound non-streaming response body reads in the OpenAPI plugin#1430
RhysSullivan merged 3 commits into
mainfrom
repro/openapi-body-read-timeout

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

OpenAPI invocations bounded time-to-headers and streaming bodies, but a buffered body read (json/text/arrayBuffer) had no deadline. An upstream that sends headers quickly and then stalls the body would hang the call until the caller's own deadline; on runtimes without a platform subrequest limit there was no backstop at all.

The body read now runs under a timeout (default 60s, configurable via invokeOptions.responseBodyTimeoutMs) that aborts the underlying request and fails with a distinct upstream_response_body_timeout error. Includes a regression test against a stalled-body server.

@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 1b7dac2 Commit Preview URL

Branch Preview URL
Jul 18 2026, 06:00 AM

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 1b7dac2 Jul 18 2026, 06:01 AM

@pkg-pr-new

pkg-pr-new Bot commented Jul 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1430

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1430

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1430

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1430

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1430

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1430

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1430

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1430

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1430

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1430

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1430

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1430

executor

npm i https://pkg.pr.new/executor@1430

commit: 1b7dac2

@RhysSullivan
RhysSullivan marked this pull request as ready for review July 18, 2026 06:04
@RhysSullivan
RhysSullivan merged commit a86cc4e into main Jul 18, 2026
21 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Jul 18, 2026
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