Changeset 5521


Ignore:
Timestamp:
Jul 31, 2009, 10:12:48 AM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

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

    r5519 r5521  
    15301530
    15311531                // keep alives and not up? yes-> link connection request is stale!
    1532                 if ( !ld->up && difftime( now, ld->keepAliveTime ) > 2 ) {
     1532                if ( !ld->up && difftime( now, ld->keepAliveTime ) >= 2 ) {
    15331533
    15341534                        // increase counter
    15351535                        ld->keepAliveMissed++;
    15361536
    1537                         // missed more than four keep-alive messages (4 sec)? -> drop link
    1538                         if (ld->keepAliveMissed > 10) {
     1537                        // missed more than four keep-alive messages (10 sec)? -> drop link
     1538                        if (ld->keepAliveMissed > 4) {
    15391539                                logging_force( "Link connection request is stale, closing: " << ld );
    15401540                                oldlinks.push_back( ld );
     
    15761576
    15771577                if (ld->up!=1) continue;
    1578 
     1578/*
    15791579                vector<LinkID>::iterator it = std::find(
    15801580                                bootstrapLinks.begin(), bootstrapLinks.end(), ld->communicationId);
     
    15841584                        continue;
    15851585                }
     1586*/
    15861587                logging_force( "Link timed out. Dropping " << ld );
    15871588                dropLink( ld->overlayId );
Note: See TracChangeset for help on using the changeset viewer.