Changeset 5779 for source/ariba
- Timestamp:
- Aug 7, 2009, 1:20:53 PM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5777 r5779 118 118 // get descriptor of first hop 119 119 rld = getDescriptor(rlid); 120 121 // is first hop a relay path use local relay 122 if ( rld->relay ) relayNode = rld->localRelay; 123 124 // no-> a proper relay node has been found 125 else relayNode = rld->remoteNode; 120 if (rld!=NULL) { 121 // is first hop a relay path use local relay 122 if ( rld->relay ) relayNode = rld->localRelay; 123 124 // no-> a proper relay node has been found 125 else relayNode = rld->remoteNode; 126 } 126 127 } 127 128 … … 1426 1427 } else { 1427 1428 logging_info("Routing relay message to " << relayMsg->getRelayNode().toString() ); 1428 // sendOverlay( &_overMsg, relayMsg->getRelayNode() ); 1429 sendOverlay( &_overMsg, relayMsg->getDestNode() ); 1429 sendOverlay( &_overMsg, relayMsg->getRelayNode() ); 1430 1430 } 1431 1431 ret = true; … … 1607 1607 1608 1608 // missed more than four keep-alive messages (10 sec)? -> drop link 1609 if (ld->keepAliveMissed > 4) {1609 if (ld->keepAliveMissed > 8) { 1610 1610 logging_info( "Link connection request is stale, closing: " << ld ); 1611 1611 oldlinks.push_back( ld ); -
source/ariba/overlay/modules/chord/Chord.cpp
r5776 r5779 453 453 void Chord::eventFunction() { 454 454 stabilize_counter++; 455 if (stabilize_counter < 0 || stabilize_counter == 4) {455 if (stabilize_counter < 0 || stabilize_counter >= 2) { 456 456 457 457 // reset counter … … 491 491 back_route& br = *i; 492 492 if (difftime(br.lastseen,time(NULL))>5) i = 493 back_routes.erase(i) ;493 back_routes.erase(i)-1; 494 494 } 495 495 logging_info("Running orphan removal");
Note:
See TracChangeset
for help on using the changeset viewer.