simplify ft_send.dot

This commit is contained in:
Green Sky 2022-10-23 01:23:38 +02:00
parent d9e9a6b83d
commit 428048c79f
No known key found for this signature in database

View File

@ -14,39 +14,17 @@ digraph ft_send {
done [shape=doublecircle]; done [shape=doublecircle];
// peer offline (how) // peer offline (how)
start -> fail [label="peer offline"] start -> fail [label="peer offline"];
// TODO: move to single node with loop start -> sent_init [label="send FT_INIT"];
subgraph cluster_init {
label="Send Init";
style=filled;
//color=lightgrey;
// if it fails
sent_init1 -> sent_init2 [label="send FT_INIT"]
// if it fails again
sent_init2 -> sent_init3 [label="send FT_INIT"]
}
start -> sent_init1 [label="send FT_INIT"]
// peer offline (how) // peer offline (how)
sent_init1 -> fail [label="peer offline"] sent_init -> fail [label="peer offline OR timeout too often"];
// peer offline (how) sent_init -> sent_init [label="timeout & sentcount <= 3, send FT_INIT"];
sent_init2 -> fail [label="peer offline"]
// give up after 3. attempt
sent_init3 -> fail [label="no ack / peer offline"]
// got an ack after an init // got an ack after an init
sent_init1 -> have_data [label="got init_ack"] sent_init -> have_data [label="got init_ack"]
sent_init2 -> have_data [label="got init_ack"]
sent_init3 -> have_data [label="got init_ack"]
subgraph cluster_data { subgraph cluster_data {
label="for each data chunk"; label="for each data chunk";