-
Notifications
You must be signed in to change notification settings - Fork 35
Fix concurrency races on shared Http/Route singletons #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
loks0n
wants to merge
21
commits into
main
Choose a base branch
from
fix/concurrency-shared-state
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
20a944f
Fix: Eliminate shared-state races on the Http/Route/Router singletons
loks0n 61bbb78
Chore: Mark dead Route::matchedPath methods and unused Http::$request…
loks0n b226bf5
Remove dead Route::matchedPath methods and unused Http::$requestConta…
loks0n 6a86d7e
Use plain 'route'/'matchedPath' keys in the request container
loks0n 042ed2e
Make Http::setRoute private
loks0n 23c23c4
Rename request-scoped helpers to use 'context' terminology
loks0n 694d807
Remove Http::getRoute / setRoute / get-set MatchedPath
loks0n 2da69df
Format: single-quote 'route' in HttpTest
loks0n 0707b7c
Split Adapter::getContainer() into getContainer + getContext
loks0n 5f86d40
Inject route's resolved arguments into shutdown/error hooks
loks0n 1ca856c
Bundle route + matchedPath + arguments into immutable RouteMatch
loks0n 4117939
Rename RouteMatch::\$matchedPath to RouteMatch::\$path
loks0n e6ffc47
Drop RouteMatch::withArguments(), use the constructor directly
loks0n 1200c1a
Seed context 'match' to null at the top of runInternal
loks0n a2c5636
Seed RouteMatch::\$arguments with path values at match-time
loks0n 6340582
Make RouteMatch::\$arguments mutable, drop the replace-on-update dance
loks0n 2e2c19a
Revert: path-value seeding into RouteMatch::\$arguments at match-time
loks0n e26b1a9
Collapse Adapter API to a single getContext()
loks0n 536f945
Fix RouteMatch docblock: \$arguments is single-write, not two-pass
loks0n a3ece56
Trim verbose comments and docblocks
loks0n df3b31c
Populate \$match->arguments incrementally so error hooks see partials
loks0n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.