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
xtaci and GitHub
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
xtaci and GitHub
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
xtaci and GitHub
fcb4d6007a
Update README.md
2020-01-05 19:26:56 +08:00
xtaci and GitHub
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
xtaci and GitHub
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
Temple3x and xtaci
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
xtaci and GitHub
5e3955f967
Update README.md
2019-10-26 21:49:00 +08:00
xtaci and GitHub
bb31b7882b
Add files via upload
2019-10-26 21:48:02 +08:00
xjdrew and xtaci
b15c303be7
try best to send all queued messages when close UDPSession ( #145 )
...
* try best to send all queued messages when close UDPSession
* fix: lock
2019-10-23 16:24:44 +08:00
xtaci and GitHub
2533cec203
Update README.md
2019-09-27 13:37:02 +08:00
xtaci
d002baf70a
optimize updater to a per-session timer for multicore
v5.4.11
2019-09-26 10:53:49 +08:00
xtaci
6b4294b8fd
remove a redundant variable
2019-09-25 20:05:06 +08:00
xtaci
d59f410c97
reset fastack = 0 to prevent from sending needless data
v5.4.10
2019-09-24 05:20:15 +00:00
xtaci
d0f56d82a1
adjust flush condition sequence,fastack first to prevent needless fire
v5.4.9
2019-09-23 21:57:41 +08:00
xtaci
b82e376791
Merge branch 'fastack'
v5.4.8
2019-09-23 21:25:00 +08:00
xtaci
0c1ea7566e
fastack adjust
2019-09-23 13:15:20 +00:00