Repository navigation
Releases
Releases · xtaci/kcp-go
v5.7.10
Changes since v5.7.3:
Features
- Added
ResetRTO()to trigger retransmission eligibility after connectivity is restored (#344). - Added the
kcp_no_snmpbuild tag to disable statistics collection (#368). - Added source-address preservation for wildcard UDP listeners on supported platforms.
Performance
- Replaced FEC auto-tuning sample arrays and sorting with a packed 512-position bitmap window. On 64-bit platforms, auto-tuning storage drops from 4,152 to 152 bytes per decoder.
- Reduced allocations in buffer pooling, connection lookup, FEC shard handling, and KCP segment queues (#376, #382, #384, #387).
- Switched SM4 to
emmansun/gmsmfor hardware-accelerated implementations where available (#375).
Reliability
- Improved deadline enforcement and cleanup, scheduler shutdown, and socket error handling (#369, #377, #378).
- Fixed
CurrEstabupdates and added oversized FEC packet checks (#381, #387). - Expanded auto-tuning, concurrency, and platform test coverage.
Upgrade notes
- Go 1.26.2 or later is required (#370).
- Rate limiting now uses
juju/ratelimit. Data is queued before the pacing wait, which is not interrupted by a deadline or close (#367). - With
kcp_no_snmp,Snmpstatistics fields and reporting methods are unavailable.
Full changelog: v5.7.3...v5.7.9
v5.7.3
v5.6.73
What's Changed
- Bump golang.org/x/crypto from 0.45.0 to 0.52.0 by @dependabot[bot] in #347
- fix: preserve buffer for queued segments after MTU change by @sean0407 in #348
- sess: an empty write reports the session state without flushing by @0pcom in #350
- sess: arm a deadline timer only when Read or Write blocks by @0pcom in #349
New Contributors
Full Changelog: v5.6.72...v5.6.73