Commit Graph

54 Commits

Author SHA1 Message Date
Yujia Qiao 25a737b10e
ci: don't publish unless release is successful
fix: fix test_udp_connect for `cross`
2022-01-14 22:30:23 +08:00
Yujia Qiao 9ad61b5fdc
fix: set keepalive_intvl to 3s 2022-01-14 20:53:49 +08:00
Yujia Qiao 0d9e5ec1aa
feat: expose TCP_NODELAY and TCP_KEEPALIVE (#96)
* feat: expose TCP_NODELAY
* fix: opt-in `nodelay` for each service
* fix: enforce `nodelay` for every control channel
* feat: expose keepalive_secs
* feat: expose keepalive_interval
* docs: update docs
* fix: update dependencies and implement hint for noise
2022-01-14 15:37:09 +08:00
Yujia Qiao 91b38cbe5f
fix: log retry intervals 2022-01-13 21:25:01 +08:00
Yujia Qiao 2de9147a0f
fix: improve log 2022-01-13 20:44:59 +08:00
Yujia Qiao 7a35e9e4f2 fix: flush when handshaking 2022-01-13 11:42:50 +08:00
Yujia Qiao 7a7eef11bc fix: support IPv6 `local_address` for UDP 2022-01-12 20:32:21 +08:00
Yujia Qiao edbb5ce5c9 feat: make `accept` cancel safe and add a timeout 2022-01-12 17:18:28 +08:00
Yujia Qiao e6dd0c8df8 feat: emit colored log only when STDOUT is a tty 2022-01-11 21:10:54 +08:00
Yujia Qiao 383151bd4a
fix: improve reliability and logs (#85)
* fix: use a smaller keepalive interval

* fix: improve logs and clean up
2022-01-08 19:38:17 +08:00
Yujia Qiao 3430845749
fix: improve logs 2022-01-08 17:33:01 +08:00
Yujia Qiao ba3c134a87
fix: use retry_notify to log errors 2022-01-08 16:43:34 +08:00
Yujia Qiao 8f03673406
fix: add contexts for noise errors 2022-01-08 16:24:33 +08:00
Yujia Qiao f1fed7e2cf chore: fix typo in codes 2022-01-07 22:51:47 +08:00
Yujia Qiao 744590370f fix: a log typo 2022-01-07 21:56:43 +08:00
Yujia Qiao f989643c10
fix: use u8 instead of u16 for hdr len 2022-01-07 19:19:01 +08:00
Yujia Qiao d0d4f61efd fix: cancel safety 2022-01-07 18:30:34 +08:00
Yujia Qiao a071b0786b fix: log error when failed to listen on udp port 2022-01-07 18:30:34 +08:00
Yujia Qiao d1fdef5d56 fix: hot-reload for client and server both present 2022-01-06 00:48:29 +08:00
Yujia Qiao 30ac69fdb1 fix: panic on top-level errors 2022-01-03 18:37:26 +08:00
Yujia Qiao d396cdd0b8 fix: vergen without git repo 2022-01-03 17:36:53 +08:00
Yujia Qiao 55404285a1 feat: verbose version message 2022-01-02 14:24:16 +08:00
Yujia Qiao cca74fbc2a
chore: clean up 2022-01-02 12:05:21 +08:00
Yujia Qiao 9f8a324d35
feat: tokio-console 2022-01-02 12:05:21 +08:00
Yujia Qiao 07cd606b63
refactor: improve log 2022-01-02 12:05:21 +08:00
Yujia Qiao 9b3d2eb79a
fix: decrease tcp connection pool size 2022-01-02 12:05:21 +08:00
Yujia Qiao 8d2dc65a1d
fix: improve keepalive 2022-01-02 12:05:21 +08:00
Yujia Qiao c8cb60708d test: refactor and add tests for hot-reload 2021-12-27 15:50:13 +08:00
Yujia Qiao c8e679fa65 feat: add crate feature `notify` 2021-12-27 15:50:13 +08:00
Yujia Qiao 9c0f28caee feat: service-wise hot reload 2021-12-27 15:50:13 +08:00
Yujia Qiao 8097b6916f feat: hot-reload by restarting 2021-12-27 15:50:13 +08:00
Yujia Qiao 48f0514b6c feat: separate `noise` as a crate feature 2021-12-25 19:08:36 +08:00
Yujia Qiao ae20ecf477 fix: set keepalive for noise 2021-12-25 14:21:15 +08:00
Yujia Qiao 46ec6400e4 feat: add `--genkey` 2021-12-24 22:01:54 +08:00
Yujia Qiao f472814013 feat: add noise protocol support 2021-12-24 22:01:54 +08:00
Yujia Qiao 46b0b6b9cc docs: add iperf3 example
docs: update README.md and add comments
2021-12-23 19:01:42 +08:00
Yujia Qiao ca46125cc8 test: add udp tests 2021-12-23 19:01:42 +08:00
Yujia Qiao 443f763800 feat: UDP support 2021-12-23 19:01:42 +08:00
Yujia Qiao 65c75da633
ci: treat clippy lints as errors (#16)
* fix: clippy lint

* ci: treat clippy as errors
2021-12-20 12:50:20 +08:00
Yujia Qiao dc04befa5a feat: add crate features: tls, server, client 2021-12-20 12:46:35 +08:00
Yujia Qiao 8b5571b419 feat: set `info` as the default logging level 2021-12-19 19:45:08 +08:00
Yujia Qiao 0701c7cfe0 refactor: replace `ring` with `sha2` 2021-12-19 18:13:54 +08:00
Yujia Qiao 85d9bf7bdb
refactor: clippy and clean up 2021-12-19 18:02:51 +08:00
Yujia Qiao 1d5ad9c185
fix: add error context 2021-12-19 18:02:51 +08:00
Yujia Qiao b8e824849a
refactor: facilitate tests 2021-12-19 18:02:51 +08:00
Yujia Qiao 776bce35cb
chore: add a TODO 2021-12-19 18:02:51 +08:00
Yujia Qiao ed3b3a9831
test: add tests for config parsing and examples 2021-12-19 18:02:51 +08:00
Yujia Qiao 347b958e84
docs: add comments and update README.md 2021-12-19 18:02:51 +08:00
Yujia Qiao b6c353e7bf
fix: service listener backoff policy
Remove the `max_elapsed_time` limit
2021-12-19 18:02:51 +08:00
Yujia Qiao f92398ea31
refactor: fix clippy, merge imports
Fix lints of clippy
Merge imports
2021-12-19 18:02:51 +08:00