Comparing magicliang:master...trpc-group:master · magicliang/trpc-java
Commits on Sep 17, 2025
-
* feat: 修复线程池泄露问题,并增加相应测试。 * docs: 将测试类注释从中文改为英文 * test: 新增测试验证 unregisterMBean 对 null 参数的异常处理 * docs: 将部分代码注释从中文改为英文 * style: 移除 DefTimeoutManager 类 watch 方法多余减号注释行 * style: 统一 ConfigManagerTest 测试方法缩进格式 * style: 移除 ConfigManager.reset() 空行并设置默认值 false * fix: 修正日志标点及异常参数顺序并补充异常对象输出 * docs(test): 将测试类注释及方法注释等更新为英文并增强测试用例
Commits on Apr 7, 2026
-
trpc-proto-http: fix response header parsing in HttpConsumerInvoker (t…
…rpc-group#135) * trpc-proto-http: fix response header parsing in HttpConsumerInvoker The previous implementation iterated over HeaderElement objects and called element.getName() to extract header values. This only returns the token before the first '=' or ';' delimiter, causing truncation of composite header values such as: Content-Type: application/json; charset=utf-8 -> "application/json" X-Token: key=abc123 -> "key" Set-Cookie: sessionId=abc; Path=/; HttpOnly -> "sessionId" Fix this by calling header.getValue() directly to obtain the complete header value, consistent with the approach already used in Http2ConsumerInvoker. Also remove the now-unused HeaderElement import. Add HttpConsumerInvokerTest covering: - simple header values (no delimiters) - composite values containing semicolons (core fix scenario) - values containing equals signs - multiple headers all stored correctly - header values stored as byte[] (tRPC protocol consistency) - non-200 status code throws TRpcException - zero Content-Length returns empty response body - complex cookie header with multiple semicolons and equals signs - non-zero Content-Length with response body decoded correctly * trpc-proto-http: fix comment