Repository navigation
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