mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
04.13.2007 63f1d8aa27cd58a798acc351e69fa36d9ef810b6
refs
author gbellato <gbellato@localhost>
Friday, May 4, 2007 18:13 +0200
committer gbellato <gbellato@localhost>
Friday, May 4, 2007 18:13 +0200
commit63f1d8aa27cd58a798acc351e69fa36d9ef810b6
tree 28efbb287853892a976cbf44ed6316193b6636c1 tree | zip | gz
parent 83e8d2a9fdf07473b21e34aa95bc4967ac4de1b6 view | diff
Fixes for the 2 replication problems : 

- Missing cn attribute in replication.ldif


- When at least 2 replication servers are used, they will both try to connect to each other.
Since there must be only one connection, one of the connection is rejected.
Unfortunately in some cases the replication server fails to recognize that they are
already connected and keep trying to connect to the other replication server
every second.

The reason while they fail to notice that they are already connected is because
there is a confusion in the code between the IP address and the hostname.
This fix uses the IP address everywhere and also add checks between the IP address
and the local IP address : 127.0.0.1.



3 files modified
39 ■■■■ changed files
opends/resource/config/replication.ldif 1 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/ReplicationMessages.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 29 ●●●● diff | view | raw | blame | history