Skip to content

Add adapter close lifecycle - #37

Merged
samuel-williams-shopify merged 3 commits into
mainfrom
add-adapter-close
Sep 10, 2026
Merged

Add adapter close lifecycle#37
samuel-williams-shopify merged 3 commits into
mainfrom
add-adapter-close

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Protocol::Rack::Adapter presents a Rack application as Protocol::HTTP middleware, whose lifecycle includes #close. The adapter currently implements #call but not #close, causing middleware shutdown to raise unless applications add their own adapter-level workaround.

This change makes the adapter always respond to #close and forwards it when the underlying Rack application exposes an optional close hook.

This was found while running Shopify Core through Falcon with Protocol::HTTP::Executor::Threaded.

Testing

  • bundle exec sus (148 tests, 311 assertions)

Assisted-By: devx/b8194217-b20a-4799-b266-4910beb3ee2b
Assisted-By: devx/b8194217-b20a-4799-b266-4910beb3ee2b
Assisted-By: devx/b8194217-b20a-4799-b266-4910beb3ee2b
@samuel-williams-shopify
samuel-williams-shopify merged commit 7ff6ae2 into main Sep 10, 2026
88 of 94 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the add-adapter-close branch September 10, 2026 06:43
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