Skip to content

Only generate app_uri.txt and append Rack app when the server feature is enabled #234

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

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jan 18, 2024

Because the addon client uses the tmp/app_uri.txt's existence to determine whether to send the request, if the file is generated when the server feature is disabled, the client would just spam the server with requests.

We also don't need to append the Rack app if Rails server is not invoked.

Because the addon client uses the file's existence to determine whether
to send the request, if the file is generated when the server
feature is disabled, the client would just spam the server with requests.

We also don't need to append the Rack app if Rails server is not invoked.
@st0012 st0012 added the bugfix This PR fixes an existing bug label Jan 18, 2024
@st0012 st0012 requested a review from a team as a code owner January 18, 2024 12:01
@st0012 st0012 requested review from andyw8 and vinistock January 18, 2024 12:01
@st0012 st0012 merged commit 8908626 into main Jan 18, 2024
@st0012 st0012 deleted the dont-always-generate-app-uri branch January 18, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants