v0.15.4
Bug Fixes
Code Generation - DeepCopy for Binary Types (#1902)
- 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.