Skip to content

Use promises for protocol readiness - #233

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
use-promise-http2-response
Jul 29, 2026
Merged

Use promises for protocol readiness#233
samuel-williams-shopify merged 1 commit into
mainfrom
use-promise-http2-response

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Replace one-shot notifications with Async::Promise in the HTTP/1 server and HTTP/2 response stream.

For HTTP/2, the promise resolves when initial headers arrive and rejects when the stream closes with an error, replacing the separate notification and exception state. For HTTP/1, connection closure resolves its one-shot readiness latch.

Tests: 241 passed, 3 skipped. RuboCop: 127 files inspected, no offenses.

@samuel-williams-shopify
samuel-williams-shopify merged commit c199edb into main Jul 29, 2026
34 of 40 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the use-promise-http2-response branch July 29, 2026 06:02
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