-
Notifications
You must be signed in to change notification settings - Fork 32
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
// Max size allowed by quinn datagrams. | ||
// TODO: make it configurable by the messaging backend. | ||
const MAX_PACKET_SIZE: usize = 1162; |
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.
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
.
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.
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.
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.
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.
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.
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.
Adjusts packet size constant to match quinn