Skip to content

Commit

Permalink
Improve UDP client receive buffer size
Browse files Browse the repository at this point in the history
Previously, the UdpClientStream was using a fixed `2048` for the size of the receive buffer. This can cause problems on interfaces with a larger MTU.

Updated the code to use the MTU for the local interface, if available. Otherwise default to the maximum packet size.

Fixes: #1973
  • Loading branch information
nmittler committed Jun 21, 2023
1 parent dc14427 commit d1b8126
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 29 deletions.
184 changes: 164 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1b8126

Please sign in to comment.