jiangdongzi opened a new issue, #2515:
URL: https://github.com/apache/brpc/issues/2515

   **Describe the bug (描述bug)**
   比如server可以接收的最大stream_id是200, 那么server会正常处理1-200的所有stream, 并正常返回, 
然后才会close连接, 客户端肯定会先收到之前的正常stream返回, 然后才会收到EOF包, 但是由于并行, 可能EOF包先执行, 
然后会把该连接上所有的pending请求都置为错误, 但是之前收到的包比如steam_id 187包先于EOF包收到, 但是比EOF后执行, 
那么stream_id187包会错误的被当作异常包处理
   
   **To Reproduce (复现方法)**
   设置http2 server的最大执行流id上限小一点, 比如200, 客户端压测就可以复现
   
   **Expected behavior (期望行为)**
   比server可以执行的最大stream_id小的请求都应该被正确处理, 而不是因为并发先执行EOF, 比最大stream_id小的包就会被当作异常包
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   
![image](https://github.com/apache/brpc/assets/17529657/55d8edd3-3b0f-4813-bc9c-e7a7dd9c5d75)
   客户端已经接受到了stream_id 11的包, 但是被abandone了


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to