V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
These changes address a memory leak in the WebService/PSM functionality of the plugin. It also allows a user to switch between using FLIR(WebSocket) and PSM(WebService) without crashing or generating segmentation faults.
Related Issue
497
Motivation and Context
Users of this plugin have noticed memory loss and error code generation while using this plugin. Users have also requested a fix for the #497 issue.
How Has This Been Tested?
Tested using a script to send 1000 PSM XMLs to the plugin. No messages were lost.
Tested using local FLIR camera to ensure functionality was maintained.
Switched between DataProviders (PSM/FLIR) in various combinations to ensure threads were closed or joined properly.
Types of changes
[X] Defect fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that cause existing functionality to change)
Checklist:
[ ] I have added any new packages to the sonar-scanner.properties file
[ ] My change requires a change to the documentation.
PR Details
Description
These changes address a memory leak in the WebService/PSM functionality of the plugin. It also allows a user to switch between using FLIR(WebSocket) and PSM(WebService) without crashing or generating segmentation faults.
Related Issue
497
Motivation and Context
Users of this plugin have noticed memory loss and error code generation while using this plugin. Users have also requested a fix for the #497 issue.
How Has This Been Tested?
Tested using a script to send 1000 PSM XMLs to the plugin. No messages were lost. Tested using local FLIR camera to ensure functionality was maintained.
Switched between DataProviders (PSM/FLIR) in various combinations to ensure threads were closed or joined properly.
Types of changes
Checklist: