Spirent / openperf

Infrastructure and application test and analysis framework
Apache License 2.0
18 stars 15 forks source link

fix event timeout crash #574

Closed cmyers-spirent closed 11 months ago

cmyers-spirent commented 11 months ago

The cpu/memeory generators intermittently crashed in the load update timeout handler due to accessing a results object previously deleted by stop().

The issue appears to have been caused because the event loop may still dispatch pending events after they have been deleted from the event loop in an event handler because they aren't actually removed until later.

This change fixes the issue by marking the events as deleted so they can be ingored until they can be safely removed.


This change is Reviewable