Skip to content

perf: add max udp payload size option - #2343

Merged
Ralith merged 1 commit into
quinn-rs:mainfrom
Dreamacro:perf-max-udp-payload-size
Aug 25, 2025
Merged

perf: add max udp payload size option#2343
Ralith merged 1 commit into
quinn-rs:mainfrom
Dreamacro:perf-max-udp-payload-size

Conversation

@Dreamacro

Copy link
Copy Markdown
Contributor

Sometimes the actual MTU of the interface is not 1500, so I would like perf to customize this.

I noticed that #2342 also makes changes to perf, so I can wait until it's merged and adjust the code.

@djc djc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@Dreamacro
Dreamacro force-pushed the perf-max-udp-payload-size branch from 72ba69d to 4696afd Compare August 24, 2025 14:42
@Dreamacro

Copy link
Copy Markdown
Contributor Author

@djc already rebase main

@Dreamacro
Dreamacro force-pushed the perf-max-udp-payload-size branch from 4696afd to c30ebaf Compare August 24, 2025 14:45
@Dreamacro Dreamacro changed the title Add max udp payload size on perf perf: add max udp payload size option Aug 24, 2025
@djc

djc commented Aug 24, 2025

Copy link
Copy Markdown
Member

(I'd like @Ralith to take a look before merging.)

@Ralith Ralith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's a case for Option<u16> so that we only have to write the default value in one spot, but I like how, as written, the default shows up gracefully in the auto-generated CLI flag documentation.

@Ralith

Ralith commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator

Using the interface MTU by default would also be a nice idea, but the question of which interface MTU becomes very hairy.

@Ralith
Ralith added this pull request to the merge queue Aug 25, 2025
Merged via the queue into quinn-rs:main with commit c7bdfa2 Aug 25, 2025
20 checks passed
@Dreamacro
Dreamacro deleted the perf-max-udp-payload-size branch August 25, 2025 04:11
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