Comparing wenhsh:master...trpc-group:master · wenhsh/trpc-java
Commits on Aug 8, 2025
Commits on Sep 17, 2025
-
feat: 修复线程池泄露问题,并增加相应测试。 (trpc-group#94)
* feat: 修复线程池泄露问题,并增加相应测试。 * chore(test): 新增 DefResponseFutureManager.reset() 调用 * docs(test): 将测试注释及字符串转为英文,新增两个测试方法 * docs: 将部分代码注释从中文改为英文 * docs: 将注释“服务接口配置”改为英文“Service interface configuration” * docs: 将注释“服务接口配置”改为英文“Service interface configuration” * feat: 新增关闭监听器及超时管理器控制方法 * style: 移除 DefTimeoutManager 类 watch 方法多余减号注释行 * style: 统一 ConfigManagerTest 测试方法缩进格式 * style: 移除 ConfigManager.reset() 空行并设置默认值 false * test: 为 Http2cRpcClientTest 新增前置方法与类导入 * test: 新增测试类初始化方法重置 AbstractConsumerInvoker * fix: 修正日志标点及异常参数顺序并补充异常对象输出 * test: 新增 AbstractConsumerInvoker 的 ShutdownListener 功能测试 * feat(test): 新增HTTP/HTTPS协议配置及URI构建测试 * feat(test): 新增测试验证 MXBean 为 null 时关闭方法正常执行 * test: 新增 MBean 注册注销异常处理及 TestMBean 测试用例
-
* 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