Changeset 5487 for source


Ignore:
Timestamp:
Jul 30, 2009, 4:18:17 PM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r5484 r5487  
    205205seqnum_t BaseOverlay::sendOverlay( Message* message, const NodeID& nodeid ) {
    206206        for (size_t i=0; i<links.size(); i++)
    207                 if ( links[i]->up &&
    208                 links[i]->communicationUp &&
    209                 !links[i]->relay &&
    210                 links[i]->keepAliveMissed <= 1 &&
    211                 links[i]->remoteNode == nodeid &&
    212                 links[i]->service == OverlayInterface::OVERLAY_SERVICE_ID) {
     207                if ( !links[i]->relay &&
     208                        links[i]->up &&
     209                        links[i]->communicationUp &&
     210                        links[i]->keepAliveMissed <= 1 &&
     211                        links[i]->remoteNode == nodeid &&
     212                        links[i]->service == OverlayInterface::OVERLAY_SERVICE_ID) {
     213                        links[i]->markAsRelay();
    213214                        return sendMessage( message, links[i] );
    214215                        break;
     
    15741575        BOOST_FOREACH( const LinkDescriptor* ld, oldlinks ) {
    15751576
     1577                if (ld->up!=1) continue;
     1578
    15761579                vector<LinkID>::iterator it = std::find(
    15771580                                bootstrapLinks.begin(), bootstrapLinks.end(), ld->communicationId);
Note: See TracChangeset for help on using the changeset viewer.