summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libese_weaver/src/weaver-impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libese_weaver/src/weaver-impl.cpp b/libese_weaver/src/weaver-impl.cpp
index 85f950b..a253545 100644
--- a/libese_weaver/src/weaver-impl.cpp
+++ b/libese_weaver/src/weaver-impl.cpp
@@ -156,6 +156,9 @@ Status_Weaver WeaverImpl::Read(uint32_t slotId, const std::vector<uint8_t> &key,
if (mParser->ParseGetDataInfo(std::move(resp), getDataInfo) == WEAVER_STATUS_OK) {
/* convert timeout from getDataInfo sec to millisecond assign same to read response */
readRespInfo.timeout = (getDataInfo.timeout * 1000);
+ if (getDataInfo.timeout > 0) {
+ status = WEAVER_STATUS_THROTTLE;
+ }
}
}
}