Fix issue OpenDJ-103: Replication in 2.4 head and trunk are no longer compatible with 2.4.0 and 2.4.1
| | |
| | | setSessionError(e); |
| | | throw e; |
| | | } |
| | | catch (final RuntimeException e) |
| | | { |
| | | setSessionError(e); |
| | | throw e; |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | public void stopEncryption() |
| | | { |
| | | // The secure socket has been configured not to auto close the underlying |
| | | // plain socket. |
| | | try |
| | | // plain socket. We should close it here and properly tear down the SSL |
| | | // session, but this is not compatible with the existing protocol. |
| | | if (false) |
| | | { |
| | | secureSocket.close(); |
| | | } |
| | | catch (IOException ignored) |
| | | { |
| | | // Ignore. |
| | | try |
| | | { |
| | | secureSocket.close(); |
| | | } |
| | | catch (IOException ignored) |
| | | { |
| | | // Ignore. |
| | | } |
| | | } |
| | | |
| | | input = plainInput; |
| | |
| | | Integer.toString(inServerStartMsg.getServerId()), |
| | | Integer.toString(replicationServerDomain.getReplicationServer(). |
| | | getServerId())); |
| | | logError(errMessage); |
| | | throw new DirectoryException(ResultCode.OTHER, errMessage); |
| | | } |
| | | catch (NotSupportedOldVersionPDUException e) |
| | |
| | | Integer.toString(inReplServerStartMsg.getServerId()), |
| | | Integer.toString(replicationServerDomain.getReplicationServer(). |
| | | getServerId())); |
| | | logError(errMessage); |
| | | abortStart(errMessage); |
| | | } |
| | | catch(DirectoryException de) |