warriorpaw commented on PR #2180:
URL: https://github.com/apache/brpc/pull/2180#issuecomment-1486138968

   > Does this affect performance?
   
   Brpc already piped write requests by linked list and only one bthread calls 
ssl_write.
   
   In data reading, brpc use epoll in edge triggered mode and an atomic 
variable to make sure there is only one bthread is calling ssl_read.
   
   Adding a mutex here will introduce some competition, but it should be very 
slight. Further this mutex will avoided the competition of using underlay 
socket fd. So, the impact of this change on performance should be almost none.
   


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

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