* Session-id CLI functionality delayed: "lazy evaluation"
* From a cli perspective this is a revert to 4.1 behaviour, where the cli does not immediately exit on start if the backend is not running, but with the new session-id function
This commit is contained in:
parent
ba2d18417a
commit
3d5c2cc678
9 changed files with 133 additions and 57 deletions
|
|
@ -1426,11 +1426,15 @@ from_client_hello(clicon_handle h,
|
|||
int retval = -1;
|
||||
uint32_t id;
|
||||
|
||||
id = clicon_session_id_get(h);
|
||||
if (clicon_session_id_get(h, &id) < 0){
|
||||
clicon_err(OE_DAEMON, ENOENT, "session_id not set");
|
||||
goto done;
|
||||
}
|
||||
id++;
|
||||
clicon_session_id_set(h, id);
|
||||
cprintf(cbret, "<hello><session-id>%u</session-id></hello>", id);
|
||||
retval = 0;
|
||||
done:
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue