Browse Source

extend the DSL to support rate limits for messages

ENGINE-736
Volker Birk 2 years ago
parent
commit
ac3e72c396
2 changed files with 5 additions and 4 deletions
  1. +3
    -2
      sync/fsm.yml2
  2. +2
    -2
      sync/sync.fsm

+ 3
- 2
sync/fsm.yml2 View File

@ -49,9 +49,10 @@ decl condition @name, if is condition;
decl else;
// some events have messages on the line signalling the event to the
// communication partner
// communication partner; the rate limit is in seconds until such a mesage can
// be repeated, 0 means off
decl message @name (id, type=anycast, security=trusted);
decl message @name (id, type=anycast, security=trusted, ratelimit=0);
// messages can have transmitted fields…


+ 2
- 2
sync/sync.fsm View File

@ -574,7 +574,7 @@ protocol Sync 1 {
// beacons are always broadcasted
message Beacon 2, type=broadcast, security=unencrypted {
message Beacon 2, type=broadcast, ratelimit=10, security=unencrypted {
field TID challenge;
auto Version version;
}
@ -668,7 +668,7 @@ protocol Sync 1 {
field TID response;
}
message SynchronizeGroupKeys 21 {
message SynchronizeGroupKeys 21, ratelimit=10 {
}
}
}

Loading…
Cancel
Save