feat(xrpc-server): add bounded streaming procedures - #25
Merged
Conversation
Keep parsed request metadata out of the body receive buffer and wake both the listener and accepted sockets during shutdown. This prevents multi-chunk POST routing corruption and teardown hangs after interrupted uploads. Co-authored-by: Codex <noreply@openai.com>
Add an authenticated, rate-limited streaming procedure lifecycle that exposes Content-Length and query parameters without buffering the body. Ensure cleanup runs after completion and peer disconnects, and cover bounded chunk delivery, length rejection, and interrupted uploads. Co-authored-by: Codex <noreply@openai.com>
Expose a single-use opaque hasher so large blob producers can compute canonical raw CIDs without buffering complete payloads or depending on OpenSSL internals. Co-authored-by: Codex <codex@openai.com>
Align the feature list and module status with the streaming procedure lifecycle, incremental CID API, and current multipart video lexicons now present in the codebase. Co-authored-by: Codex <codex@openai.com>
Keep the compatibility header in sync with the shim's varargs parser so clean server builds can configure worker pools without relying on an undeclared libmicrohttpd constant. Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.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.
Summary
Reference alignment
Compared against the current
bluesky-social/atprotolexicons and the public Indigo implementation. The multipart video contract is currently defined by the official lexicons; the public reference PDS and Indigo do not yet expose an equivalent multipart server implementation.Verification
git diff --checkpassCMake is unavailable in the development sandbox, so the server sources/tests were compiled and linked directly against the existing Wolfram/cJSON build artifacts.