github cloudwego/kitex v0.15.4

7 hours ago

v0.15.4

Bug Fixes

Code Generation - DeepCopy for Binary Types (#1902)

  1. Fixed: DeepCopy code generation now correctly handles Thrift binary types that are mapped to Go string types.

This ensures string-typed binary fields are handled with simple value assignment instead of byte slice allocation and copying.

Dependencies

Updated: github.com/cloudwego/gopkg v0.1.6 → v0.1.8 (#1903)

Changes included from gopkg v0.1.7:

  • Optimized thrift span cache with lazy initialization (performance improvement)
  • Fixed protocol handling to ensure data length matches copied bytes for strings and binary data (correctness fix)
  • Added connection state checker for gonet (stability improvement)
  • Resolved file descriptor operator memory leak (memory safety)

Changes included from gopkg v0.1.8:

  • Increased ttheader limit size from 64KB to 256KB
  • Fixed header length overflow issues

Impact: Improves protocol handling correctness, memory safety, and increases header size limits for TTHeader protocol users.

Commits

  • ccdabb2 - fix(tool): DeepCopy assignment failed when map key type is binary (#1902)
  • 3f27dca - chore: update github.com/cloudwego/gopkg from v0.1.6 to v0.1.8 (#1903)
  • 4e64cc3 - chore: release version v0.15.4

Don't miss a new kitex release

NewReleases is sending notifications on new releases.