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

Adjust packet size constant #407

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

newclarityex
Copy link
Contributor

Adjusts packet size constant to match quinn

@Shatur Shatur changed the title adjust packet size constant Adjust packet size constant Feb 6, 2025
@Shatur Shatur requested a review from UkoeHB February 6, 2025 18:02
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.75%. Comparing base (927a8bf) to head (673caad).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #407   +/-   ##
=======================================
  Coverage   89.75%   89.75%           
=======================================
  Files          51       51           
  Lines        2773     2773           
=======================================
  Hits         2489     2489           
  Misses        284      284           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +227 to +229
// Max size allowed by quinn datagrams.
// TODO: make it configurable by the messaging backend.
const MAX_PACKET_SIZE: usize = 1162;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather not inflict quinn implementation details on the other backends. Maybe it's time to implement the make it configurable by the messaging backend.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, I just wanted to make a temporary solution to fix the issue with quinn in a patch release.

Ideally I want resources as components to provide a nicer interaction with backends.

Copy link
Collaborator

@UkoeHB UkoeHB Feb 6, 2025

Choose a reason for hiding this comment

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

It should be easy enough to implement: add the setting to RepliconServer, let backends override it/edit it. If a quinn user desperately needs a workaround then they can pin to this branch until a proper solution is implemented.

We can't publish regressions on purpose in patch releases.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like in QUIC it's a variable value per-connection. So it needs to be on ReplicatedClients.

I though using a more conservative value is not that bad, but you are right. I will convert this branch into a draft and implement a proper solution later.

@Shatur Shatur marked this pull request as draft February 6, 2025 21:26
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.

3 participants