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

Enable keepalive: true for requests to reduce new connections #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jvigliotta
Copy link
Collaborator

@jvigliotta jvigliotta commented Feb 7, 2025

Closes #167
Have tested this and there's an ~85% improvement in connection times.

Note: HTTP/2 Requests issued with keep-alive: true will be treated as malformed in Safari. This should not present any issues since it is handled gracefully in Chrome HTTP/2 responses (recommended browser), and Firefox HTTP/2 responses. The overall recommendation with Open MCT is to use HTTP/1, in order to not potentially swamp the server.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive for more details regarding this

Copy link

sonarqubecloud bot commented Feb 7, 2025

Copy link
Collaborator

@davetsay davetsay left a comment

Choose a reason for hiding this comment

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

Great find. Please link to the closing issue.

@jvigliotta jvigliotta marked this pull request as ready for review February 24, 2025 18:06
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.

OMM 5.x builds load MIOs and parse dictionaries 5x slower than builds <4.10
2 participants