shadowsocks / shadowsocks/shadowsocks-rust

[Enhancement] UDP sockets improve with sendmmsg/recvmmsg

Open
#823 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
10.9k
Forks
1.5k
Avg merge
4d 15h
Merged PRs (30d)
5

Description

Speedtest: https://github.com/shadowsocks/shadowsocks-org/issues/194#issuecomment-1109529757

Batch send and recv UDP packets will significantly increase the upper limit of speed for UDP channels.

Works have to be done:

  • Find a proper way (zero-cost abstraction) for sendmmsg and recvmmsg on these 4 platforms
  • Making UDP association channels to be compatible with batch send / recv
  • Proper way to fallback (when sendmmsg/recvmmsg are not supported)

If anyone interested to make it available, PRs are welcome.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by locating the UDP association channel implementation and reviewing the linked sendmmsg/recvmmsg APIs for Linux, FreeBSD, macOS, and Windows; done means batched UDP send/receive support with a proper fallback on unsupported platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, macos, rust
Domain
networking, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.