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

Fixing issue #2755: using a reference type config #2881

Closed
wants to merge 1 commit into from

Conversation

rkreutz
Copy link
Contributor

@rkreutz rkreutz commented Sep 5, 2022

If we change HTTPServer.Configuration to be a reference type rather than a value type we can then pass this reference into HTTPServer from the server extension service and then any changes done inside HTTPServer are automatically reflected on the storage in the server extension service.

There are no changes in terms of usage, though now if you pass --hostname host when serving your app app.http.server.config will reflect that change (whereas before it was keeping the default value of 127.0.0.1)

Resolves #2755

If we change HTTPServer.Configuration to be a reference type rather than a value type we can then pass this reference into HTTPServer from the server extension service and then any changes done inside HTTPServer are automatically reflected on the storage in the server extension service
@rkreutz
Copy link
Contributor Author

rkreutz commented Sep 5, 2022

This is an alternative to #2882

@rkreutz
Copy link
Contributor Author

rkreutz commented Sep 6, 2022

Closing in favor of the alternative PR

@rkreutz rkreutz closed this Sep 6, 2022
@rkreutz rkreutz deleted the bugfix/2755/reference-type branch September 6, 2022 10:00
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.

http server configuration has wrong hostname and port if they are set through cli ( -H hostname -p port )
1 participant