shadowsocks / shadowsocks/shadowsocks-rust

[Feature Request] Please support SO_REUSEPORT, just as ss-libev does.

Open
#2,043 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I was trying to migrate from ss-libev to ss-rust. Due to some compatibility issues, I cannot run a single sslocal instance with multiple server in configuration files. Instead, I need to run two sslocal instances, each configured as a server, listening on the same port. I will use SO_REUSEPORT to achieve load balancing by listening on the same port.

我正在尝试从ss-libev转向ss-rust。因为一些兼容性原因,目前我无法使用运行一个sslocal实例 + 配置文件填写多个server的模式。而是需要运行两个sslocal实例,各使用一个server配置,通过监听相同的端口,利用SO_REUSEPORT实现监听同一端口进行负载均衡。

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

The issue names no files, tests, or entry points. Start by locating the listener setup and existing socket-option handling, then verify that two sslocal instances configured as servers can bind the same port with SO_REUSEPORT and distribute connections.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.