BUG-2207 Make reconnect promise reconnect even if session was dropped during negotiation 58/11858/4
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 9 Oct 2014 15:23:25 +0000 (17:23 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 22 Oct 2014 11:16:10 +0000 (11:16 +0000)
Change-Id: I58adc2e42bb8ce09bfb8b5cd214a91300bb2bbb0
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/ReconnectPromise.java

index ea87afa48dedddfe20ef5430aa60d25ecc594c1a..98a2c2cca16cbc8c085e530af206aa497c9e5d49 100644 (file)
@@ -98,10 +98,8 @@ final class ReconnectPromise<S extends ProtocolSession<?>, L extends SessionList
                 return;
             }
 
-            // Check if initial connection was fully finished. If the session was dropped during negotiation, reconnect will not happen.
-            // Session can be dropped during negotiation on purpose by the client side and would make no sense to initiate reconnect
             if (promise.isInitialConnectFinished() == false) {
-                return;
+                LOG.debug("Connection to {} was dropped during negotiation, reattempting", promise.address);
             }
 
             LOG.debug("Reconnecting after connection to {} was dropped", promise.address);