From 6249bf749efc6e4ea9d5fb791f87793e9629f8c1 Mon Sep 17 00:00:00 2001 From: Efim Poberezkin Date: Fri, 25 Dec 2020 19:18:37 +0400 Subject: [PATCH] fix SMP command mentioned in Duplex subscribe --- design/agent-commands.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/design/agent-commands.md b/design/agent-commands.md index 70a65eeeb..d060a110f 100644 --- a/design/agent-commands.md +++ b/design/agent-commands.md @@ -122,10 +122,14 @@ Subscribes/unsubscribes user to/from SMP queue. > > \* -> commands TBQueue -> client thread; client thread is blocked until receives answer from SMP server -> \# > -> \* -> srv snd TBQueue -> "server send" thread -> Either `subscribe` or `suspend` SMP command is sent through SMP client connection TCP socket -> SMP server responds with first available message or if there is none with SMP `ok` command back to SMP client connection TCP socket -> "server receive" thread -> srv rcv TBQueue -> client thread; client thread becomes unblocked -> \# +> \* -> srv snd TBQueue -> "server send" thread -> `subscribe` SMP command is sent through SMP client connection TCP socket -> SMP server responds with first available message or if there is none with SMP `ok` command back to SMP client connection TCP socket -> "server receive" thread -> srv rcv TBQueue -> client thread; client thread becomes unblocked -> \# > > \# -> user SMP TBQueue -> "process responses" thread -> queue is persisted as Disabled -> Duplex [`ok`](#ok) command sent to user send TBQueue -> "user send" thread -> user connection TCP socket -> agent client +- **Q - Which SMP command is sent to the SMP server on Duplex `subscribe Off`?** + + A - + #### `getStatus` #### `send`