shadowsocks-rust

Running
```bash
start ssserver
./run.sh s
start sslocal
./run.sh c
```
TODO
- [x] add cache for DNS
- [x] review
unwrap
, .ok()
、unimplemented
, unreachable
- [x] check if there exists
cannot decrypt
log
- [x] test with shadowsocks
- [x] remove unnecessary
clone
~~(maybe this is the cause of high CPU problem)~~
- [x] find the reason of high CPU (5% ~ 20%)
- [ ] ~~fix high CPU caused by
on_remote_read
~~ (see issue #1)
- [ ] ~~response slow after fixed high CPU problem~~
- [ ] finish all TODO items in source (wait
cargo
to support required-feature
, see pull 2056)
- [x] handle the timeout situation of client
- [x] handle DNS error properly (e.g. remove caller or call
resolve
again)
- [x] review
tcp_processor
- [ ] ~~refactor error handle~~
Features need to finished
- [x] Running as daemon
- [x] UDP support
- [ ] OTA encrypt method support
- [ ] TCP fast open
- [ ] Multiple encrypt methods support
Test sites
- http://www.bilibili.com/
- http://www.panda.tv/
- https://html.spec.whatwg.org/
- https://facebook.com/