leaf-potato opened a new issue, #2334:
URL: https://github.com/apache/brpc/issues/2334

   **Describe the bug (描述bug)**
   
   使用h2+gzip压缩访问brpc server会报错无法解析:
   ```
   W0730 17:33:28.510489 2387351 
/home/leaf-potato/Open-Source/brpc/example/echo_c++/client.cpp:108]
   [E1010]HTTP/2.0 400 Bad Request: [10.211.55.6:8000][E1003]Fail to parse http 
body as example.EchoRequest
   ```
   
   **To Reproduce (复现方法)**
   
   1. example/echo_c++/client.cpp新增代码开启gzip压缩:
   ```
   ...
   request.set_message("hello world");
   cntl.set_request_compress_type(brpc::COMPRESS_TYPE_GZIP);
   ...
   ```
   2. 启动Server:`./echo_server`
   3. 启动Client访问:`./echo_client --protocol="h2" 
--http_body_compress_threshold=1`
   
   
   **Expected behavior (期望行为)**
   
   使用h2协议开启gzip压缩也能正确响应。
   
   **Versions (各种版本)**
   
   OS: Ubuntu 22.04.2 LTS
   Compiler: gcc 11.3.0
   brpc: master
   protobuf: 3.12.4
   
   **Additional context/screenshots (更多上下文/截图)**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to