Skip to content

Releases: xtaci/kcp-go

Implemented Pacing in Userspace

16 Nov 02:30

Choose a tag to compare

Before:

$ go test -v -run=^$ -bench Echo                                                      ✔  10:29:31   
2025/11/16 10:29:32 beginning tests, encryption:salsa20, fec:10/3
goos: linux
goarch: amd64
pkg: github.com/xtaci/kcp-go/v5
cpu: AMD Ryzen 9 5950X 16-Core Processor
BenchmarkEchoSpeed4K
BenchmarkEchoSpeed4K-32            15097             84449 ns/op          48.50 MB/s       20018 B/op        169 allocs/op
BenchmarkEchoSpeed64K
BenchmarkEchoSpeed64K-32             907           1216051 ns/op          53.89 MB/s      310014 B/op       2579 allocs/op
BenchmarkEchoSpeed512K
BenchmarkEchoSpeed512K-32            120           9350585 ns/op          56.07 MB/s     2448735 B/op      20325 allocs/op
BenchmarkEchoSpeed1M
BenchmarkEchoSpeed1M-32              100          19568832 ns/op          53.58 MB/s     4961869 B/op      41245 allocs/op
PASS
ok      github.com/xtaci/kcp-go/v5      7.423s

This version:

$ go test -v -run=^$ -bench Echo                                                            INT ✘  10:28:46   
2025/11/16 10:28:50 beginning tests, encryption:salsa20, fec:10/3
goos: linux
goarch: amd64
pkg: github.com/xtaci/kcp-go/v5
cpu: AMD Ryzen 9 5950X 16-Core Processor
BenchmarkEchoSpeed4K
BenchmarkEchoSpeed4K-32            31744             40587 ns/op         100.92 MB/s       18251 B/op        152 allocs/op
BenchmarkEchoSpeed64K
BenchmarkEchoSpeed64K-32            1870            569006 ns/op         115.18 MB/s      284778 B/op       2340 allocs/op
BenchmarkEchoSpeed512K
BenchmarkEchoSpeed512K-32            273           4498961 ns/op         116.54 MB/s     2248562 B/op      18462 allocs/op
BenchmarkEchoSpeed1M
BenchmarkEchoSpeed1M-32              134           9257285 ns/op         113.27 MB/s     4494310 B/op      36928 allocs/op
PASS
ok      github.com/xtaci/kcp-go/v5      8.630s

Full Changelog: v5.6.35...v5.6.36

v5.6.33

13 Nov 11:01

Choose a tag to compare

Full Changelog: v5.6.32...v5.6.33

v5.6.25

03 Nov 03:08

Choose a tag to compare

Merge branch 'jinnblue-master'

v5.6.22

12 Jun 03:01

Choose a tag to compare

remove unused ts field

v5.6.19

09 Apr 07:44
c5078bd

Choose a tag to compare

What's Changed

  • fix: reading low-level net.PacketConn when UDPSession is closed by @snyh in #280
  • Bump golang.org/x/crypto from 0.21.0 to 0.31.0 by @dependabot in #281
  • Use net.Error-compatible timeout error by @rgurov in #283

New Contributors

Full Changelog: v5.6.18...v5.6.19

v5.6.16

28 Aug 06:55

Choose a tag to compare

fix https://github.com/xtaci/kcp-go/issues/273

v5.6.15

24 Aug 16:47

Choose a tag to compare

added Control() function to give user privilege to set net.PacketConn

v5.6.12

02 Aug 06:38

Choose a tag to compare

Full Changelog: v5.6.11...v5.6.12

v5.6.11

29 Jul 07:05

Choose a tag to compare

fix recycle

v5.6.8

11 Mar 14:11

Choose a tag to compare

fix for issue: https://github.com/xtaci/kcp-go/issues/259