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

Introduce environment variable to override connexion settings #13936

Merged

Conversation

rschnekenbu
Copy link
Contributor

What it does

Adds support for a FRONTEND_CONNECTION_TIMEOUT environment variable to override configuration setting for the backend.

fixes #13800

Contributed on behalf of STMicroelectronics

How to test

  1. Start default browser example (yarn browser start from terminal). Open a browser window and access localhost:3000
  2. Close this browser window and check the settings value for frontend connexion timeout on the log in debug console. This should be some entry like setting close timeout for id fb80451d-10da-416b-b656-062c78ba408a to 3000
  3. Set the environment variable to another value, as for example export FRONTEND_CONNECTION_TIMEOUT=10000
  4. restart the default browser example and close the browser again. this time, the close timeout log should be the one that you set.
  5. Some other tests can be made with -1, closing directly the connection or with something else than a number. It should then turn back to default config, e.g. 3000.

Follow-ups

none

Review checklist

Reminder for reviewers

…iguration

fixes eclipse-theia#13800

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
@rschnekenbu rschnekenbu force-pushed the remi/13800_connection_settings branch from a82987a to 2cbcb10 Compare July 17, 2024 14:56
@rschnekenbu rschnekenbu requested a review from planger July 17, 2024 14:57
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me and seems to work fine! 👍 Just a few minor inline suggestions.

packages/core/README_TEMPLATE.md Outdated Show resolved Hide resolved
packages/core/README.md Outdated Show resolved Hide resolved
Co-authored-by: Philip Langer <planger@eclipsesource.com>
@rschnekenbu
Copy link
Contributor Author

Thanks for this very quick review and suggestions, @planger! I still don't understand why we have different spelling for "connection" in French and English :D

@rschnekenbu rschnekenbu merged commit 9e307dd into eclipse-theia:master Jul 18, 2024
12 of 14 checks passed
@rschnekenbu rschnekenbu deleted the remi/13800_connection_settings branch July 18, 2024 07:28
@sgraband sgraband added this to the 1.52.0 milestone Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Allow to override connection settings
3 participants