Skip to content

Commit aa24e75

Browse files
committed
added -t1 flag explanation to docs
Signed-off-by: bota <[email protected]>
1 parent a3e1619 commit aa24e75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/book/v1/commands.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ In both cases the flags are optional. Keep in mind if both `start` and `end` are
2828
In order to be able to test the `processed` command, by default when processing the "control" message, it is logged as successfully processed with `"levelName":"info"` simulating that the message was processed successfully. To use it run the following message:
2929

3030
`echo "control" | socat -t1 - TCP:host:port`
31+
32+
Using `-t1` flag is not necessary but can be useful, it is used to set a timeout of n seconds for both reading and writing, after n second of inactivity, socat will terminate the connection. If the timeout is not set and the server does not respond or keep the connection open, the socat process could hang indefinitely.

0 commit comments

Comments
 (0)