EarthChen commented on code in PR #9954:
URL: https://github.com/apache/dubbo/pull/9954#discussion_r856158023


##########
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:
   Volatile variables may not work well. In any case, judgment is required. If 
it is only volatile, concurrency may occur when judging and modifying if.



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