You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/27 02:03:43 UTC

[GitHub] carryxyh commented on issue #2135: Fix a bug when client reconnect

carryxyh commented on issue #2135: Fix a bug when client reconnect
URL: https://github.com/apache/incubator-dubbo/pull/2135#issuecomment-408288884
 
 
   There has sth wrong about my describe of this pr.
   This is one optimize when two thread call reconnect.
   
   In old way:
   Thread A call reconnect.
   Thread B call reconnect. This case maybe make twice connect and twice disconnect.
   
   In new way:
   Thread A call reconnect, Thread B wait for the lock.
   After Thread A finishing reconnect, Thread B will not do connect and disconnect. Because of that Thread A finish connect, this client is connected, it dose not need to reconnect again.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org