Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Process multiple packets in receive()

closed-fixed
nobody
None
6
2002-10-01
2002-06-20
Steven Hessing
No

In BGP::Neighbor::Receive we only accept one packet
at a time per neighbor. This means that we return to
select and all the routing table updates eventhough there
may be more data waiting for us.
We should do something like this after select()
terminates:

use constant PROCESS_PACKETS => 100;
$packets_to_read = PROCESS_PACKETS;
$neighbor_count = @neighbors;
foreach $neighbor ((random_order (@neighbors)){
$read = $neighbor->receive
(int($packets_read / $neighbor_count));
$packets_to_read -= $read;
$neighbor_count--;
}

Discussion

  • Steven Hessing
    Steven Hessing
    2002-10-01

    • status: open --> closed-fixed