usdot-fhwa-OPS / V2X-Hub

V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
Apache License 2.0
120 stars 67 forks source link

Fix tcm intermittent reception #604

Closed dan-du-car closed 5 months ago

dan-du-car commented 5 months ago

PR Details

Description

Fix the TCM intermittent reception issue where carma cloud sends TCMs in an http request and v2xhub CARMACloudPlugin sometimes does not receive the TCMs. Replace the OpenAI generated code with QhttpEngine recommended functional call, refer to: https://ci.quickmediasolutions.com/job/qhttpengine-documentation/doxygen/classQHttpEngine_1_1QObjectHandler.html.

Related Issue

https://github.com/usdot-fhwa-OPS/V2X-Hub/issues/601 https://github.com/usdot-fhwa-OPS/V2X-Hub/issues/603

Motivation and Context

CARMA cloud integration testing

How Has This Been Tested?

Local integration test

Types of changes

Checklist:

paulbourelly999 commented 5 months ago

@dan-du-car Wait so the edits are not on the generated code, That makes sense. You mentioned it is a replacement of generated code. Does that mean some of the generated code can be removed? You also mentioned that this is an issue with other OpenAPI generated REST clients/servers. If so we should create issues to remove the problematic code and include any evidence you have of these other services having similar issues.

@paulbourelly999 The generated code is in the server lib. I think some OpenAI related code in the CARMACloudPlugin is a copy with some modification from there: https://github.com/usdot-fhwa-OPS/V2X-Hub/blob/develop/ext/server/src/main.cpp.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud