Skip to content
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

Correctly identify Unicorn when used with Rack v3 #1585

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Conversation

fallwith
Copy link
Contributor

@fallwith fallwith commented Nov 2, 2022

With version 3.0.0 of Rack in play, the agent can be fooled into thinking that web dispatching duties are being handled by Webrick. This is because the agent performs a less strict test for Webrick compared to other dispatchers; checking only for the existence of related namespaces to be defined.

With these changes, the agent will now treat Webrick as the last dispatcher checked after all other anticipated production use dispatchers have not been located. Specifically, this means that Webrick is checked after Unicorn, Rainbows, and FastCGI; all of which may have been incorrectly reporting as having Webrick as the dispatcher if Rack v3.0.0 was being used.

Resolves #1394

With version 3.0.0 of Rack in play, the agent can be fooled into
thinking that web dispatching duties are being handled by Webrick. This
is because the agent performs a less strict test for Webrick compared to
other dispatchers; checking only for the existence of related namespaces
to be defined.

With these changes, the agent will now treat Webrick as the last
dispatcher checked after all other anticipated production use
dispatchers have not been located. Specifically, this means that
Webrick is checked after Unicorn, Rainbows, and FastCGI; all of which
may have been incorrectly reporting as having Webrick as the dispatcher
if Rack v3.0.0 was being used.

Resolves #1394
remove extra space character being used for unrelated RuboCop testing
@github-actions
Copy link

github-actions bot commented Nov 2, 2022

SimpleCov Report

Coverage Threshold
Line 93.28% 93%
Branch 84.21% 84%

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, James!

Copy link
Contributor

@tannalynn tannalynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@fallwith fallwith merged commit dda3bdb into dev Nov 2, 2022
@fallwith fallwith deleted the yhbt_with_rack3 branch November 2, 2022 16:29
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.

CI: Determine the root cause of Rack v3.0.0 causing Unicorn errors
3 participants