-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix: EFB Setting to enable MCDU Server connection to avoid too many connection attempts #6947
fix: EFB Setting to enable MCDU Server connection to avoid too many connection attempts #6947
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to make this applicable to local-api (user-facing name TBD) when that is out too 😉
I think this can be transferred 1:1 to the local-api branch. It only touches the MCDU side and doesn't really care about mcdu server or local-api server. I'll do that once merged (might be sufficient to rebase/merge into the local-api branch.) Alos the EFB 3 branch should get this change then. |
...l_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_MainDisplay.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See question but otherwise looks good from my perspective!
...l_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_MainDisplay.js
Outdated
Show resolved
Hide resolved
Dev Tester Report Discord : saschl Testing Process:
Note: did not experience stutters :) Conclusion: LGTM, nice work. |
Quality Assurance Tester Report Discord : mico#3145 Testing Process: Negatives: Testing Results: Conclusions: |
…ing MCDU server connection attempts.
I have added a check that it only starts connection attempts after the users clicked "Ready to Fly" |
…onnection attempts (#6947)
Summary of Changes
EFB Setting to enable MCDU Server connection to avoid too many connection attempts
It has become apparent that the MSFS internal engine does not close and remove websocket objects correctly when the MCDU server is not reachable (e.g. offline). This has led to memory leaks and stutter issues for many users. This issue has been reported to Asobo 6375.
In the meantime this PR offers a workaround for the issue by introducing an EFB Setting to enable and disable the MCDU Server connection.
The EFB Setting has three options: "Auto On", "Auto Off", "Perm Off".
Auto On: Will try to connect to the MCDU Server with each start of a flight. The number of attempts to connect to a MCDU server is limited to 60 (=5min) after which the EFB setting will be disabled ("Auto Off").
The user can enable the setting immediately again to get another 5min of connection attempts.
Auto Off: After 60 attempts the setting will jump to this setting. If this is the seeting from the last flight it will automatically set to "Auto On" to attempt to connect.
Perm Off: The MCDU will never attempt to connect to the MCDU Server.
Note: Although during the 5min of connection attempts there will be some accumulation of websocket objects this is a good compromise between mitigating the issue and comfort for the user. Especially as users reported issues only after a longer period of flight.
Linked Docs PR: docs update: flybywiresim/docs#499
Screenshots
The error messages are expected - although not nice they can't be avoided when trying to make sure all sockets are closed.
Discord username (if different from GitHub): Cr_Maverick#6475
Testing instructions
Find the MCDU Server docs here:
https://docs.flybywiresim.com/fbw-a32nx/feature-guides/web-mcdu/
How to download the PR for QA
Every new commit to this PR will cause a new A32NX artifact to be created, built, and uploaded.