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

gbellato
04.13.2007 a997f87844bb4e696cd541b1cd2e3e3e7489d3e0
refs
author gbellato <gbellato@localhost>
Friday, May 4, 2007 18:13 +0200
committer gbellato <gbellato@localhost>
Friday, May 4, 2007 18:13 +0200
commita997f87844bb4e696cd541b1cd2e3e3e7489d3e0
tree c581e1c3f0770c1e7abbf6fc7fc08058a516662a tree | zip | gz
parent bf5340aac9628566b2ef6b06da088fb3ba4a4ed2 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
opendj-sdk/opends/resource/config/replication.ldif 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/messages/ReplicationMessages.java 9 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 29 ●●●● diff | view | raw | blame | history