@mark1russell7/machines 0.3.21 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ The algebra reads these documents. It gives the closed form of each timer, the f
53
53
  | `RABBITMQ_CONNECTION` | `rabbitmq-connection` | RabbitMQ 4.3.6: one connection of AMQP 0-9-1 on the broker | server | 14 implemented, 1 documented |
54
54
  | `ATEN_DETECTOR` | `aten` | aten 0.6.0: one node that the failure detector of another node of RabbitMQ watches | server | 7 implemented |
55
55
  | `RA_MEMBER` | `ra-member` | ra 3.1.10: one member of the Raft cluster of a quorum queue of RabbitMQ 4.3.6 | server | 25 implemented |
56
- | `GRPC_JS` | `grpc-js` | grpc-js 1.14.6: one channel to a gRPC server, its HTTP/2 transport, its keepalive and a unary call | driver | 26 implemented, 1 observed |
56
+ | `GRPC_JS` | `grpc-js` | grpc-js 1.14.6: one channel to a gRPC server, its HTTP/2 transport, its keepalive and a unary call | driver | 27 implemented, 1 observed |
57
57
  | `GRPC_GO_SERVER` | `grpc-go-server` | A server of grpc-go v1.84.0: one HTTP/2 connection, its keepalive, its policy for PINGs and its TCP socket | server | 13 implemented, 1 documented |
58
58
  | `ETCD_SERVER` | `etcd-server` | The server of etcd v3.6.15 on grpc-go v1.83.2: one gRPC connection of a client | server | 19 implemented, 1 documented |
59
59
  | `ENVOY_HTTP2` | `envoy-http2` | Envoy 1.39.4 as an HTTP/2 proxy of gRPC: one connection of a client, its streams, the local replies and the close | proxy | 16 implemented |
package/build/index.js CHANGED
@@ -827,6 +827,10 @@ const GRPC_JS = machineSchema.parse({
827
827
  ref: `${AT$13}/backoff-timeout.ts:23-26 the reconnect waits 1000 ms first, each next wait 1.6 times longer, up to 120000 ms, with a jitter of 0.2`,
828
828
  rung: "implemented"
829
829
  },
830
+ {
831
+ ref: `${AT$13}/backoff-timeout.ts:124, :169-181, :197-201 the first wait after a reset is the initial delay, with no jitter. Each next wait is the last wait, jitter included, times 1.6 and capped, then ± 20 %: the jitter compounds`,
832
+ rung: "implemented"
833
+ },
830
834
  {
831
835
  ref: `${AT$13}/internal-channel.ts:74-77 and :324-325 a channel with no call for grpc.client_idle_timeout_ms goes IDLE: 30 min at the defaults, 1 s at least`,
832
836
  rung: "implemented"
@@ -1064,18 +1068,18 @@ const GRPC_JS = machineSchema.parse({
1064
1068
  unit: "ms"
1065
1069
  },
1066
1070
  early: {
1067
- expr: "0.2 * min(initial_reconnect_backoff * pow(1.6, fired), max_reconnect_backoff)",
1071
+ expr: "min(initial_reconnect_backoff * pow(1.6, fired), max_reconnect_backoff) - min(initial_reconnect_backoff * pow(1.28, fired), 0.8 * max_reconnect_backoff)",
1068
1072
  unit: "ms"
1069
1073
  },
1070
1074
  lateness: {
1071
- expr: "0.2 * min(initial_reconnect_backoff * pow(1.6, fired), max_reconnect_backoff) + 1000 * slack",
1075
+ expr: "min(initial_reconnect_backoff * pow(1.92, fired), 1.2 * max_reconnect_backoff) - min(initial_reconnect_backoff * pow(1.6, fired), max_reconnect_backoff) + 1000 * slack",
1072
1076
  unit: "ms"
1073
1077
  },
1074
1078
  arms: ["enter:connecting"],
1075
1079
  cancels: ["rx.settings"],
1076
1080
  fires: "timer.reconnect",
1077
1081
  backoff: { resets: ["rx.settings"] },
1078
- note: "backoff-timeout.ts:23-26, subchannel.ts:349-372: the backoff starts with each connect. A connect that fails before it ends waits for it. A ready transport stops it and starts it again from 1 s"
1082
+ note: "backoff-timeout.ts:23-26, :169-181, subchannel.ts:349-372: the backoff starts with each connect. A connect that fails before it ends waits for it. A ready transport stops it and starts it again from 1 s, with no jitter. In kind run 39390098968, the calls of a client failed for 984 ms to 1021 ms after a refused connect"
1079
1083
  }
1080
1084
  },
1081
1085
  realizes: {