Karssadin commented on issue #2971:
URL: https://github.com/apache/brpc/issues/2971#issuecomment-2903038605

   我看到代码中
   ```
       cntl->IssueRPC(start_send_real_us);
       if (done == NULL) {
           // MUST wait for response when sending synchronous RPC. It will
           // be woken up by callback when RPC finishes (succeeds or still
           // fails after retry)
           Join(correlation_id);
           if (cntl->_span) {
               cntl->SubmitSpan();
           }
           cntl->OnRPCEnd(butil::gettimeofday_us());
       }
   ```
   利用channel去发送请求后如果没有给到done做回调函数的话,会在当前线程阻塞。
   
   
IssueRPC中会判断有没有启用`write_in_background`,如果启用了这个flag,并且有closure做done当做回调函数,是会使用共享线程去发送吗?
   
   如果是的话,在Client发出请求时这个共享线程超过限制的话,client端会收到什么错误码?


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