Changeset 5484
- Timestamp:
- Jul 30, 2009, 2:02:11 PM (15 years ago)
- Location:
- source/ariba
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5481 r5484 1538 1538 logging_force( "Link connection request is stale, closing: " << ld ); 1539 1539 oldlinks.push_back( ld ); 1540 continue; 1540 1541 } 1541 1542 } … … 1544 1545 1545 1546 // drop links that are dropped and not used as relay 1546 if (ld->dropWhenRelaysLeft && !ld->usedAsRelay && !ld->autolink) 1547 if (ld->dropWhenRelaysLeft && !ld->usedAsRelay && !ld->autolink) { 1547 1548 oldlinks.push_back( ld ); 1548 else 1549 continue; 1550 } 1549 1551 1550 1552 // auto-link time exceeded? 1551 if ( ld->autolink && difftime( now, ld->lastuse ) > 30 ) 1553 if ( ld->autolink && difftime( now, ld->lastuse ) > 30 ) { 1552 1554 oldlinks.push_back( ld ); 1555 continue; 1556 } 1553 1557 1554 1558 // keep alives missed? yes-> … … 1562 1566 logging_force( "Link is stale, closing: " << ld ); 1563 1567 oldlinks.push_back( ld ); 1568 continue; 1564 1569 } 1565 1570 } 1571 } 1572 1573 // drop links 1574 BOOST_FOREACH( const LinkDescriptor* ld, oldlinks ) { 1575 1576 vector<LinkID>::iterator it = std::find( 1577 bootstrapLinks.begin(), bootstrapLinks.end(), ld->communicationId); 1578 1579 if (!ld->communicationId.isUnspecified() && it != bootstrapLinks.end() ){ 1580 logging_force( "Not dropping initiator link: " << ld ); 1581 continue; 1582 } 1583 logging_force( "Link timed out. Dropping " << ld ); 1584 dropLink( ld->overlayId ); 1566 1585 } 1567 1586 … … 1570 1589 if (counter>=4) showLinkState(); 1571 1590 if (counter>=4 || counter<0) counter = 0; 1572 1573 // drop links1574 BOOST_FOREACH( const LinkDescriptor* ld, oldlinks ) {1575 1576 vector<LinkID>::iterator it = std::find(1577 bootstrapLinks.begin(), bootstrapLinks.end(), ld->communicationId);1578 1579 if (!ld->communicationId.isUnspecified() && it != bootstrapLinks.end() ){1580 logging_force( "Not dropping initiator link: " << ld );1581 continue;1582 }1583 logging_force( "Link timed out. Dropping " << ld );1584 dropLink( ld->overlayId );1585 }1586 1591 } 1587 1592 -
source/ariba/utility/messages/Message.h
r5482 r5484 209 209 T* payloadMsg = new T(); 210 210 data_deserialize( payloadMsg, payload ); 211 //dropPayload();212 211 return payloadMsg; 213 212 }
Note:
See TracChangeset
for help on using the changeset viewer.