Commit Graph
673 Commits
Author SHA1 Message Date
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
xtaci 839a8aec58 add go.mod v5.4.21 2019-12-31 22:36:57 +08:00
xtaci b1d82b8a82 Squashed commit of the following:
commit 1799e41166e64d9b4e356bb4da253070df1fe3de
Author: xtaci <daniel820313@gmail.com>
Date:   Tue Dec 17 17:33:58 2019 +0800

    adjusts some condition & comments

commit 60a0ebf3d0
Author: xjdrew <xj.drew@gmail.com>
Date:   Tue Dec 17 16:31:22 2019 +0800

    create new kcp session when receive a packet sn == 0 on old port
v5.4.20
2019-12-19 11:10:02 +08:00
xtaci 2ed35ac44d fix race and parityshard leaks v5.4.19 2019-11-07 13:30:11 +08:00
xtaci 68589db576 prevent putting back nil value v5.4.18 2019-11-05 19:23:10 +08:00
xtaci ddb5eedad0 return FEC segments to xmitBuf when session closes v5.4.17 2019-11-05 14:41:57 +08:00
xtaci ef2b8b8eb4 keep slice, and set nil to buffers v5.4.16 2019-11-04 08:09:22 +00:00
xtaci 9f0f2bc554 recycle xmitBuf uniformly 2019-11-04 08:03:12 +00:00
xtaci 6e70521d78 GND the buffers(to recycle the buffers) v5.4.15 2019-11-04 04:30:41 +00:00
xtaci 9313fe25dd purge outgoing segments when closing v5.4.14 2019-11-01 14:28:14 +00:00
xtaci 62a262c330 fix fec expire counting v5.4.13 2019-10-30 14:55:04 +00:00
xtaci 5d104dba02 change to const fecExpire v5.4.12 2019-10-30 12:35:20 +00:00
xtaci 31e8785c63 add a timeout policy for fec buffer 2019-10-27 13:18:53 +00:00
xtaciandGitHub 5e3955f967 Update README.md 2019-10-26 21:49:00 +08:00
xtaciandGitHub bb31b7882b Add files via upload 2019-10-26 21:48:02 +08:00