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

   **Describe the bug (描述bug)**
   server给client端发送几十个G的数据,期间client挂。
   StreamWait的due_time设置的是100ms(是错的,应该是时间点),但也不应该卡住吧。
   client挂和StreamWait卡住先后顺序不确定。
   栈信息如图,请大佬帮忙看看是什么原因。
   
   `
   while(1) {
        int ec = brpc::StreamWrite(xxxx);
        if (ec == EINVAL) { return; }
   
        if (ec == EAGAIN) {
             auto ret = brpc::StreamWait(stream_id, &due_time);
             if (ret == EINVAL) { return; }
        }
   }
   `
   
   **To Reproduce (复现方法)**
   极难复现。
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:ubuntu 20.04
   Compiler:clang
   brpc: 1.8.0
   protobuf:3.15
   
   **Additional context/screenshots (更多上下文/截图)**
   
   
![image](https://github.com/apache/brpc/assets/9795716/72a531de-fb39-42fe-8ac7-3def1f460c89)
   


-- 
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