shadowsocks / shadowsocks/shadowsocks-rust
Running on router: memory allocation of 327660 bytes failed
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 10.9k
- Forks
- 1.5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 5
Description
I am trying to run this on a router, and while it works, it only works for a very short period of time. Shortly after I set it as the default route, I get the following message before it aborts: memory allocation of 327660 bytes failed.
This is a Linksys EA6900 router with 255MB of memory. Do you have any thoughts/suggestions on how I can overcome this issue? I am also currently bypassing Shadowsocks for my DNS resolvers to avoid overwhelming it with UDP requests.
For reference, this is how I am invoking it:
sslocal --server-addr "xxxx" \
--password "xxxx" \
--encrypt-method "chacha20-ietf-poly1305" \
--protocol tun --local-addr="127.0.0.1:8444" -U \
--tun-interface-address "192.168.220.1/24"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the sslocal entry point and reproduce the supplied command on the Linksys EA6900, monitoring memory until the allocation failure occurs. No source files or tests are named; done means identifying the trigger and documenting a router-compatible mitigation or clear reproduction details for maintainers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100