Bug 1819

Summary: FlowMonitor might cause the simulation to run forever
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: flow-monitorAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: NEW ---    
Severity: minor CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Tommaso Pecorella 2013-12-24 10:52:37 EST
FlowMonitor relies on the presence of a "Simulator::Stop (some_time_in_the_future);"

If the user forgets this, the simulation will run forever.

The root problem is in this function:
void FlowMonitor::PeriodicCheckForLostPackets ()

This is a truly periodic function, and if nobody is stopping it... it will go on forever. And the simulation with it.