lordgamez commented on code in PR #2292:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2292#discussion_r4481977140
##########
C2.md:
##########
@@ -136,6 +137,15 @@ It is possible to set a persistent fallback agent id. This
is needed so that the
# in minifi.properties
nifi.c2.agent.identifier.fallback=my_fallback_id
+
+#### C2 Connection Timeout
+
+There is an option to shut down the agent if the connection to the C2 server
exceeds a specified timeout. This is controlled by the
`nifi.c2.connection.timeout` property, which defines the maximum time allowed
without a successful heartbeat response. If the connection is not established
(or is lost) within this period, the agent will trigger a shutdown with exit
code 90. If the agent is shut down with exit 90 neither the systemd service nor
the Windows service will restart it. The feature is off by default, and can be
enabled by setting a non-zero value. If the timeout is set to a value less than
or equal to the heartbeat period, it will be automatically adjusted to twice
the heartbeat period.
Review Comment:
Good catch, I also realized we shouldn't warn and set the value if it is
already configured to twice the heartbeat period only if it is lower, fixed it
in
https://github.com/apache/nifi-minifi-cpp/pull/2292/commits/221604d4c2073a7c39f06f3a8d9dac571de18fed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]