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

[desktop] Fix making excessive handshakes #6072

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

charlag
Copy link
Contributor

@charlag charlag commented Nov 2, 2023

fix #6053

see tutadb!527

@charlag charlag marked this pull request as ready for review November 6, 2023 17:22
@ganthern ganthern force-pushed the fix-desktop-handshakes-6053 branch 2 times, most recently from a5adb2e to 4e4f66a Compare November 13, 2023 13:23
Since we switched to built-in fetch() as our implementation we noticed
that a number of users are making excessive TLS handshakes. We've found
that by default undici (that's powering node's built-in fetch()) has
low idle timeout and has no default limit for connections.

We are now explicitly using undici (also more recent version) with
explicitly configured dispatcher to adjust the http client parameters.

We should switch to HTTP2 once it stabilizes in undici.

fix #6053
@ganthern ganthern enabled auto-merge (rebase) November 13, 2023 13:57
@ganthern ganthern merged commit 803bbf0 into master Nov 13, 2023
1 check passed
@ganthern ganthern deleted the fix-desktop-handshakes-6053 branch November 13, 2023 14:01
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.

Excessive handshakes in desktop client
3 participants