guohao commented on code in PR #9954:
URL: https://github.com/apache/dubbo/pull/9954#discussion_r856240545
##########
dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java:
##########
@@ -192,10 +192,8 @@ public boolean isAvailable() {
if (channel != null && channel.isActive()) {
return true;
}
- synchronized (this) {
Review Comment:

`sync` has added when creating `promise`, so is it enough that just a `cas`
here ?
--
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]