chenBright opened a new pull request, #3784:
URL: https://github.com/apache/brpc/pull/3784

   ### What problem does this PR solve?
   
   Issue Number: resolve 
   
   Problem Summary:
   
   An SRQ worker can finish its final drain while a device thread is still 
publishing a QP error. During publication, `TryDequeue()` can return `false` 
even when older commands are already queued. Once the worker exits, a Socket 
failure notification can be lost, and a queued progress callback can keep both 
the connection and the worker alive.
   
   ### What is changed and the side effects?
   
   Changed:
   
   - Give asynchronous QP errors a dedicated queue of weak connection 
references. Both `Stop()` and the event-loop shutdown path can now drain 
previously queued commands even while a QP error is being published.
   - If the first `Close(error)` arrives after the QP has retired, dispatch the 
original Socket error after releasing the connection lock. This also works 
after the worker exits.
   
   Side effects:
   - Performance effects:
   
   - Breaking backward compatibility: 
   
   ---
   ### Check List:
   - Please make sure your changes are compilable.
   - When providing us with a new feature, it is best to add related tests.
   - Please follow [Contributor Covenant Code of 
Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md).
   


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