]> Git Repo - esp-hosted.git/commit
feature/uid Add uid to link responses to requests
authorSoh Kam Yung <[email protected]>
Fri, 5 Apr 2024 09:20:24 +0000 (17:20 +0800)
committerSoh Kam Yung <[email protected]>
Thu, 11 Apr 2024 08:26:41 +0000 (16:26 +0800)
commitecc3a69ffeeea49296c81bf908d0f6bef04de4bb
treea4f462afe1f97f4d65b87c6b97fad2bdcb2b9339
parent3c3fc1029b00ac46d98ab98495b7a817ddb5bc2d
feature/uid Add uid to link responses to requests

Added a uid to link responses to requests. The uid from the response
is checked against the uid of the request. If there is a mismatch,
the response is discarded. This allows the ctrl_core to discard responses
that the app may not handle, preventing a memory leak.

For example, the response timeout occurred before the response was
received. In this case, the request already got the timeout response,
and not handle the delayed response.

For backward compatability with older fw, if returned uid is 0,
UID checking is ignored.

Added req_resp_type for future use.
esp_hosted_fg/common/esp_hosted_config.pb-c.c
esp_hosted_fg/common/include/esp_hosted_config.pb-c.h
esp_hosted_fg/common/proto/esp_hosted_config.proto
esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_control.c
esp_hosted_fg/host/control_lib/include/ctrl_api.h
esp_hosted_fg/host/control_lib/src/ctrl_core.c
This page took 0.03194 seconds and 5 git commands to generate.