Commit Graph
1719 Commits
Author SHA1 Message Date
zonyitoo c7b4ae488d udp association creation log should be DEBUG 2022-01-21 20:54:21 +08:00
zonyitoo cc0cc7ca8a drop proxied socket when send/recv error 2022-01-21 20:22:45 +08:00
zonyitoo bd7c5b3a11 refactored UDP association reducing Tasks number
- every associations now contains only 1 task
2022-01-21 20:18:06 +08:00
zonyitoo a4b035e6cc udp association release log set to debug, matching the creation log 2022-01-21 13:21:48 +08:00
zonyitoo 269c61b985 make clippy happy 2022-01-21 01:59:10 +08:00
zonyitoo c6e0af39f4 TCP socket timeout in 7200s following Linux's setting 2022-01-21 01:53:05 +08:00
zonyitoo 8ab8e296e0 updated crypto2 for fixing aarch64 macro error 2022-01-21 00:23:07 +08:00
zonyitoo 0306fa4f2f TCP tun poll_* may wake the same task when replacing waker 2022-01-20 23:50:59 +08:00
zonyitoo 58c78e03b8 updated crypto2 for fixing build on aarch64 2022-01-20 17:51:27 +08:00
zonyitoo b2ffad33cd make clippy happy 2022-01-20 17:08:19 +08:00
zonyitoo a8d87d7c47 upgrade shadowsocks-crypto/crypto2 for removing llvm_asm
- crypto2 also supports dynamic code optimization path
- fixes #749
2022-01-20 16:19:23 +08:00
zonyitoo 4d30371bdf copy send/recv buffer as much as possible 2022-01-20 15:23:26 +08:00
zonyitoo ada409f81a EXPERIMENT: tun TCP separates read/write with interface poll
- ref #745
- reduce manager lock acquisition compete among TcpSockets and
Interface::poll
2022-01-19 13:34:10 +08:00
zonyitoo 082ef9741b better format of Icmpv6 2022-01-19 09:56:24 +08:00
zonyitoo b4167b0add remove unnecessary yield in TCP manager's poll task
Tokio will handle dead loop properly.
2022-01-17 23:13:50 +08:00
zonyitoo da541e0404 enable delay ACK for TcpSocket 2022-01-17 22:56:24 +08:00
dependabot[bot] f166e04924 Bump iprange from 0.6.6 to 0.6.7
Bumps [iprange](https://github.com/sticnarf/iprange-rs) from 0.6.6 to 0.6.7.
- [Release notes](https://github.com/sticnarf/iprange-rs/releases)
- [Commits](https://github.com/sticnarf/iprange-rs/compare/v0.6.6...v0.6.7)

---
updated-dependencies:
- dependency-name: iprange
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 22:03:13 +08:00
dependabot[bot] fd12e9b6ed Bump serde_urlencoded from 0.7.0 to 0.7.1
Bumps [serde_urlencoded](https://github.com/nox/serde_urlencoded) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/nox/serde_urlencoded/releases)
- [Commits](https://github.com/nox/serde_urlencoded/commits)

---
updated-dependencies:
- dependency-name: serde_urlencoded
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 22:03:04 +08:00
zonyitoo 13c5de07b8 increase TCP send/recv buffer size
- ref ##745, significantly increase thoughtput, but still slower than
system network stack
2022-01-17 22:01:24 +08:00
zonyitoo add0fb6cc2 SocketHandle should be removed from iface when connection closed 2022-01-17 21:35:06 +08:00
zonyitoo 3307c121fd handling ICMP, add debug logs for smoltcp Interface::poll 2022-01-17 20:50:38 +08:00
zonyitoo 1c23911874 Revert "put UDP recv buffer on heap"
This reverts commit 15c5f5d7b3.
2022-01-17 00:01:08 +08:00
zonyitoo 15c5f5d7b3 put UDP recv buffer on heap
- ref #745
- 16K buffer defined on stack of an async function will actually causing
it to be copied on Heap memory.
2022-01-16 23:39:43 +08:00
zonyitoo 470feafce9 abort the old future if state is reset 2022-01-16 21:28:06 +08:00
zonyitoo 73c49ccf13 optimization: socket manager guarded by parking_lot Mutex 2022-01-16 18:04:57 +08:00
zonyitoo 8ad277f4f3 removed unused async_interface 2022-01-16 18:00:25 +08:00
zonyitoo 9b676c9000 dns-pressure test tool (UDP memory consumption test) 2022-01-16 15:06:24 +08:00
zonyitoo 3acbe68b30 optimization: local-tun virtual device lock-free input/output 2022-01-16 11:37:35 +08:00
zonyitoo 7db23b38f4 local-tun also obey "mode" configuration 2022-01-16 04:24:51 +08:00
zonyitoo 9c9cde4156 drive interface.poll() when received packet 2022-01-16 04:12:00 +08:00
zonyitoo 00c926d282 refactored tun local with smoltcp (user-space network stack)
ref #744, probably could fix compatibility issue on R4S (OpenWRT) and
IPv6 support.
2022-01-16 03:54:52 +08:00
zonyitoo 312faea756 SECURITY: Printable IV prefix could be enabled by security-iv-printable-prefix 2022-01-14 20:34:02 +08:00
zonyitoo 53aab484f8 SECURITY: First 6 bytes of payload should be printable characters
Observation shows that prepending 6 bytes of printable characters to random payload will exempt it from blocking.
by 2022-01-13 gfw.report et al.
2022-01-14 15:11:24 +08:00
zonyitoo 19f7653729 log saddr and daddr if type unmatch 2022-01-12 14:24:19 +08:00
zonyitoo 379b71a6a9 run check_all until scores are stable 2022-01-11 23:06:58 +08:00
zonyitoo 14186d10f5 LOCAL_ADDR is not required for -U
ref #744
2022-01-11 16:33:24 +08:00
zonyitoo 9c07998c60 LOCAL_ADDR is required only in protocol except tun
fixes #744
2022-01-11 12:47:51 +08:00
dependabot[bot] 07d1a81d6e Bump clap from 3.0.4 to 3.0.5
Bumps [clap](https://github.com/clap-rs/clap) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.4...v3.0.5)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 12:35:52 +08:00
longkai 5228ef339a chore(k8s): change default image to ghcr latest
also:

- remove the unrecognized nameserver and timeout field
- server address default to "::"
2022-01-10 12:28:47 +08:00
longkai e269bcb0e6 feat(deploy): support k8s deployment (#739)
- helm chart
- kubectl with raw manifest which generated via helm
- update README
2022-01-09 23:43:47 +08:00
zonyitoo 03bf2fb5e7 switch server immediately in best checker 2022-01-08 20:47:01 +08:00
zonyitoo a10681175a check best server individually configured with check_best_interval
- ref #706
2022-01-08 20:34:08 +08:00
zonyitoo 77bc0fc7ec make clippy happy 2022-01-06 13:12:47 +08:00
zonyitoo d31b6633ee clap::ErrorKind only used when multi-threaded feature is enabled 2022-01-06 09:52:25 +08:00
zonyitoo 9ef0b31f91 upgrade clap to v3.0 2022-01-05 20:12:53 +08:00
dependabot[bot] 3438a47376 Bump serde_json from 1.0.73 to 1.0.74
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.74)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 22:46:47 +08:00
dependabot[bot] 928ebb0b66 Bump pin-project from 1.0.8 to 1.0.10
Bumps [pin-project](https://github.com/taiki-e/pin-project) from 1.0.8 to 1.0.10.
- [Release notes](https://github.com/taiki-e/pin-project/releases)
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.8...v1.0.10)

---
updated-dependencies:
- dependency-name: pin-project
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 22:46:34 +08:00
dependabot[bot] 0c1cbc551c Bump webpki-roots from 0.22.1 to 0.22.2
Bumps [webpki-roots](https://github.com/rustls/webpki-roots) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/compare/v/0.22.1...v/0.22.2)

---
updated-dependencies:
- dependency-name: webpki-roots
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 22:46:20 +08:00
wevsty 17ae98899d update service file use ssservice.
remove some wrong parameters.
2022-01-03 22:46:10 +08:00
wevsty 15a0a3a172 update changelog.
fix dpkg-buildpackage warning.
2022-01-03 22:46:10 +08:00