* Corrected client session handling to make internal IPC socket persistent
* Applies to cli/netconf/restconf/client-api code
* Previous behaviour:
* Close socket after each rpc, but now keeps the socket open until the client terminates
* Kept locks over socket life-cycle, but according to RFC 6241 7.5 a lock should be relaeased when session ends
This commit is contained in:
parent
b41f68b677
commit
f5f013c739
18 changed files with 371 additions and 145 deletions
|
|
@ -176,7 +176,7 @@ main(int argc,
|
|||
else
|
||||
if (clicon_rpc_connect_inet(h, sockpath, 4535, &s) < 0)
|
||||
goto done;
|
||||
if (clicon_rpc(s, s, msg, &retdata) < 0)
|
||||
if (clicon_rpc(s, msg, &retdata) < 0)
|
||||
goto done;
|
||||
close(s);
|
||||
fprintf(stdout, "%s\n", retdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue