Skip to content

Fixes the Routes collection to be thread-safe - #1752

Merged
Badgerati merged 2 commits into
developfrom
Issue-1669
Jul 25, 2026
Merged

Fixes the Routes collection to be thread-safe#1752
Badgerati merged 2 commits into
developfrom
Issue-1669

Conversation

@Badgerati

Copy link
Copy Markdown
Owner

Description of the Change

The Routes collection is currently an OrderedDictionary, which is not thread-safe. Normally this isn't an issue, but Pode.Web add routes during the running of the server which causes threading issues at times.

This PR converts the Routes collection to be a new PodeConcurrentOrderedDictionary object.

Related Issue

Resolves #1669

@Badgerati Badgerati added this to the 2.14.0 milestone Jul 24, 2026
@Badgerati Badgerati self-assigned this Jul 24, 2026
@Badgerati
Badgerati merged commit 1f868cd into develop Jul 25, 2026
29 checks passed
@Badgerati
Badgerati deleted the Issue-1669 branch July 25, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All routes intermittently fail (running pode in pode.web, unclear pode.web is related)

1 participant