Commit Graph
687 Commits
Author SHA1 Message Date
xtaci 7974357dd0 use unix.Milli 2024-01-04 00:04:06 +08:00
xtaci 375407b80c add passive fec 2024-01-03 23:40:01 +08:00
637838a7b2 Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 (#249)
Bumps gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0.

---
updated-dependencies:
- dependency-name: gopkg.in/yaml.v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v5.6.5
2023-10-12 23:14:37 +08:00
xtaci 8de97dfe26 upd deps 2023-10-12 23:13:03 +08:00
xtaci ceebe176cf fix autotune fec mis-align when parameters are different v5.6.4 2023-10-12 23:10:50 +08:00
xtaci b6abd38df9 upd deps v5.6.3 2023-08-11 11:52:10 +08:00
xtaci 691fc2febe use clear in go1.21 to zero instead of copying zeros 2023-08-11 11:33:20 +08:00
xtaci 03b584b84e fix timeout leak v5.6.2 2023-02-07 12:09:00 +08:00
xtaci e65665c5a0 upd deps 2022-06-27 20:09:52 +08:00
Yujia QiaoandGitHub bd59cf8a52 upgrade the dependency cpu (#214) 2021-10-22 20:23:18 +08:00
xtaciandGitHub 067d61e6c3 Delete wechat_donate.jpg 2021-05-05 10:44:54 +08:00
xtaciandGitHub 627c0f6a01 Delete donate.png 2021-05-05 10:44:43 +08:00
xtaciandGitHub 1cef813798 Update README.md 2021-05-05 10:44:17 +08:00
andGitHub 7450e915db add dissector for wireshark (#198) 2021-04-16 11:44:15 +08:00
genisysramandGitHub bd9c72d5d7 added code to run the test on Powersystems (#189) 2020-12-11 11:19:00 +08:00
xtaci 88fc14ae6d optimize left edge finding in autotune v5.6.1 2020-10-10 11:47:03 +08:00
xtaci dd1ac88f92 add extra check in auto tune 2020-10-09 23:23:58 +08:00
xtaci 582575ef06 Squashed commit of the following:
commit a8ae293a9ddee042c35e2501f93fa5dfa2425302
Merge: bdaf81e 1a84985
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 22:48:13 2020 +0800

    Merge branch 'master' into autotune

commit bdaf81e88e
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 22:38:31 2020 +0800

    add loc

commit ce66a98f95
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 19:53:42 2020 +0800

    lint

commit ad7383d8a3
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 19:05:35 2020 +0800

    fix typo

commit dc0fc2364c
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:47:14 2020 +0800

    adjust tests

commit ec45b72c39
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:45:17 2020 +0800

    remove obsolete decoder in listener

commit 827aa70e29
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:42:42 2020 +0800

    use hierarchical defensive receiving strategy

commit f5ca6b0e3a
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:34:30 2020 +0800

    optimize condition

commit ff34f7683f
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:18:00 2020 +0800

    fix test

commit a08b274651
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:13:20 2020 +0800

    solve compability issue with non FEC sender

commit ab7596783b
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:02:34 2020 +0800

    implements autotune in fec decoder

commit 260f61b3eb
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 14:34:48 2020 +0800

    hack 16-bit to identify FEC from packet

commit 105bfec567
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 2 21:38:47 2020 +0800

    add autotune
2020-10-09 22:52:11 +08:00
xtaci 1a84985373 use rlock for error notification v5.5.17 2020-09-30 19:04:24 +08:00
xtaci 608bd97d7b use rwlock for sessions object v5.5.16 2020-09-30 15:26:09 +08:00
FilipeandGitHub f45217ee3a Update dependencies (#182)
* Git ignore go vendor folder

* Update go dependencies
v5.5.15
2020-08-09 14:01:25 +08:00
xtaci 5d79d1b91b add 2 getter for metrics 2020-07-07 16:49:41 +08:00
xtaci 61b6a3efc7 combine if else 2020-07-02 21:23:23 +08:00
xtaci 43d2c47d8a flush when input has make a window slide v5.5.14 2020-07-01 18:04:55 +08:00
xtaci b7b732f98f returns current RTO v5.5.13 2020-06-30 20:46:15 +08:00
102f18da8b Import /v5 in example code. (#170)
This enables the removal of a `kcp-go v5.4.20+incompatible` from go.mod.
(Automatically using `go mod tidy`.)

Co-authored-by: David Fifield <david@bamsoftware.com>
v5.5.12
2020-04-10 22:28:50 +08:00
xtaci 831b5b2673 properly drain timer.C v5.5.11 2020-03-22 22:01:17 +08:00
xtaci 6f9c25ae24 optimize on timedsched v5.5.10 2020-03-22 21:47:17 +08:00
bb1f2af922 Make UDPSession and Listener only close PacketConns they created (#167)
* Tests for closing owned/non-owned PacketConns (#165)

* Don't close non-owned conns in UDPSession and Listener (#165)

Co-authored-by: David Fifield <david@bamsoftware.com>
2020-03-18 11:23:06 +08:00
xtaciandGitHub f394066d36 Update README.md 2020-03-15 20:19:32 +08:00
xtaci dae4131c3f bugfix in timer v5.5.9 2020-03-09 21:24:19 +08:00
xtaci 2ea2218ef0 fix cwnd compute v5.5.8 2020-02-25 10:59:16 +08:00
xtaci 96f67cd7ae https://github.com/skywind3000/kcp/blob/cbf46fa1e94adce82df337d0c4351f164ba327fa/ikcp.c#L885-L889 v5.5.7 2020-02-23 11:59:13 +08:00
xtaci 3bedbae3ba remove variant cipher block size, cause variant blocksize can cap to
8/16 bytes
v5.5.6
2020-02-09 14:46:43 +00:00
xtaciandGitHub da0cced542 Update README.md 2020-02-09 18:28:59 +08:00
xtaci 6a7b9a764e fixed a bug on ack.sn math v5.5.5 2020-01-29 13:32:03 +08:00
xtaciandGitHub fcb4d6007a Update README.md 2020-01-05 19:26:56 +08:00
xtaciandGitHub fea3b94fc0 Update README.md 2020-01-05 19:22:51 +08:00
xtaci aa20c34d98 use absolute time v5.5.4 2020-01-05 11:48:19 +08:00
xtaci 9146e93d2d prevent slice from holding reference to closure v5.5.3 2020-01-05 00:02:09 +08:00
xtaci 3b36308a0c optimize timedsched memory allocation v5.5.2 2020-01-04 23:46:31 +08:00
xtaci 0d837e2e59 optimize timedsched v5.5.1 2020-01-04 23:22:54 +08:00
xtaci 42776b0b08 add a library level timedsched.go v5.5.0 2020-01-04 17:03:09 +08:00
xtaci e0b4e0b2dc Squashed commit of the following:
commit 2553f5d81a269170f04fb518ba7a4bfd62bb0944
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Jan 3 19:49:16 2020 +0800

    update xorsimd

commit 0060649b4e5694d2e89c3572f4154d6307a40a27
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Jan 3 19:43:28 2020 +0800

    upgrade xorsimd
v5.4.26
2020-01-03 19:50:23 +08:00
xtaci e9a537d123 update .travis.yml 2020-01-03 17:09:34 +08:00
xtaciandGitHub 0afad4f679 Update README.md 2020-01-03 17:05:31 +08:00
xtaci 99d42c4a84 use primitive methods for < 8 bytes v5.4.24 v5.4.25 2020-01-03 16:01:03 +08:00
xtaci c6331af2fa Squashed commit of the following:
commit 68a8b437de6c6f2c93e868d5e4dda7712807b5cf
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Jan 3 15:48:21 2020 +0800

    add comments

commit 37e06370a13afacd7af5a28b97a0160d80d18579
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Jan 3 15:20:48 2020 +0800

    add comments

commit 7060ce363f93896e01cc2c3af2b79cbd55a5c7e1
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Jan 3 14:32:22 2020 +0800

    update
v5.4.23
2020-01-03 15:48:50 +08:00
Temple3xandxtaci 56f3bfc617 Update Lib: xor -> xorsimd, slight perf improvement (#158)
➜  kcp-go git:(refine/xor2) ✗ benchcmp old.txt new.txt
benchmark                        old ns/op     new ns/op     delta
BenchmarkAES128-8                2777          2581          -7.06%
BenchmarkAES192-8                3067          2874          -6.29%
BenchmarkAES256-8                3300          3201          -3.00%
BenchmarkCsprngNonceAES128-8     15.5          15.3          -1.29%

benchmark                        old MB/s     new MB/s     speedup
BenchmarkAES128-8                1080.19      1162.22      1.08x
BenchmarkAES192-8                978.28       1043.86      1.07x
BenchmarkAES256-8                909.06       937.27       1.03x
BenchmarkCsprngNonceAES128-8     1033.62      1046.87      1.01x

benchmark             old allocs     new allocs     delta
BenchmarkAES128-8     0              0              +0.00%
BenchmarkAES192-8     0              0              +0.00%
BenchmarkAES256-8     0              0              +0.00%

benchmark             old bytes     new bytes     delta
BenchmarkAES128-8     0             0             +0.00%
BenchmarkAES192-8     0             0             +0.00%
BenchmarkAES256-8     0             0             +0.00%
2020-01-03 12:15:35 +08:00
xtaci ec4b6da0e9 retag v5.4.22 2019-12-31 22:40:32 +08:00