Commit: cf291d29c3c00502429fddd362e3aacf45abba9e
Parent: 7616e582f10c05b0456fc8fdf2303d7fd0f96f39
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-11-05 00:54:38
Tree: 9994ffbfa8939f151a884fd38a3be01dad052ef8

tools/mesh-cfgclient: Add timeout for expected response This adds a pending request queue for the issued commands awaiting response from a remote config server. The tool forces "single-issue" of a config command, i.e. only one command that has a specified return type is allowed to be outstanding per a remote node address. That is, if AppKeyAdd command to a node is pending response, the tool disallows sending another AppKeyAdd, AppKeyUpdate or AppKeyDelete to the same address until response timeout expires (notification will be displayed). The default response timeout is set to 2 seconds and is configurable by "timeout" command.

Diffstat

M tools/mesh-cfgclient.c | 2 ++
M tools/mesh/cfgcli.c | 136 ++++++++++++++++++++++++++++++++++++++++- - - -
M tools/mesh/cfgcli.h | 1 +

3 files changed, 135 insertions(+), 4 deletions(-)

View Full Diff | Patch