//Vladimir Nov, 5th, 2007
//we might have a connection to peer but is that
//connection still open?
boolean connectionOpen = tmp != null && !tmp.isSocketClosed();
if(connectionOpen) {
if(peer_addr.compareTo(local_addr) > 0) {
if(log.isTraceEnabled())
log.trace("peer's address (" + peer_addr + ") is greater than our local address (" +
local_addr + "), replacing our existing connection");
// peer's address is greater, add peer's connection to ConnectionTable, destroy existing connection
removeConnection(peer_addr);