Repository navigation
Add bounded file copying, decoded form iteration and reusable error mapping - #7
Merged
Merged
Conversation
renerocksai
added a commit
that referenced
this pull request
Sep 25, 2026
bounded/http PR #7 now starts a request deadline at the request's first byte and bounds idle keep-alive time with `idle_timeout_ms`. Idle time no longer shortens a following request or stream. LIMITS.md and SSE.md describe the new start point and the idle bound. The continuations suite adds a stream that follows 2.5 idle seconds on a kept-alive connection with a 3-second default. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
renerocksai
added a commit
that referenced
this pull request
Sep 25, 2026
`RouteOptions.timeout_ms` gives one route its own deadline in place of `server.timeout_ms`. Registration requires `server.max_timeout_ms` to cover the value and rejects it otherwise with `error.InvalidRouteTimeout`. Baz asks the engine for the deadline before route middleware and continuation start. The continuations example adds `/long-stream`, which outlives the 3-second server deadline. Its integration case checks both execution modes and the following keep-alive request. Pins bounded/http PR #7 (`96c249b`), which adds `Config.max_timeout_ms` and `Context.setRequestTimeout`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
renerocksai
added a commit
that referenced
this pull request
Sep 25, 2026
bounded/http PR #7 now starts a request deadline at the request's first byte and bounds idle keep-alive time with `idle_timeout_ms`. Idle time no longer shortens a following request or stream. LIMITS.md and SSE.md describe the new start point and the idle bound. The continuations suite adds a stream that follows 2.5 idle seconds on a kept-alive connection with a 3-second default. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
renerocksai
added a commit
that referenced
this pull request
Sep 25, 2026
bounded-http PR #7 is merged; pin its merge commit 874a8f3 on main instead of the branch head dae8961. The package hash is unchanged: the merged tree is the one verified on the branch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Applications migrating from Zap had to work around file-reader copying, decode every form pair manually, and duplicate Baz's error classifications in custom hooks. This PR adds:
Stream.copyFrom(reader, scratch): fixed caller scratch, existing response bounds/backpressure, sticky source and sink errors, and cancellation checks between reads.Params.decodedIterator(allocator, .form | .percent): one owned allocation per pair, explicit freeing or arena lifetime, ordered duplicates, and unchanged raw iteration.web.defaultErrorStatus(err): the same classification used by App's default handler, reusable from custom error hooks.Adds runnable runtime-file and decoded-form examples, custom-error regression coverage, and a styled website walkthrough linked from the main Examples section. Documents file-reader writer limitations, file/temporary-file lifetimes, HEAD, cancellation, allocator ownership, and service shutdown responsibilities. No application-private migration source or data is included.
Dependency: merge technologylab-ai/bounded-http#6 first. Baz pins its immutable
3f0ef4644ddb51092a0580c207fc5e0f2c5de9a0revision and package hash.Validation at runtime source
0edbb57(PR head173b473changes README placement only):1954ac1has the same complete Git tree as head173b473. The separate engine Windows gate also passed.These are correctness checks, not performance measurements. Runtime I/O and general allocator work stay on application workers; cancellation cannot interrupt arbitrary source operations already in progress.