It was identified that when the remote RPC server is restarted,
the RPC client did not automatically reconnected and then the
first attempt of a cast message was not received by the remote
RPC server. Only after a second cast message was sent that the
remote connection was restablished.
Configuring the zmq socket with HEARTBEAT_IVL solves the issue.
Test Plan (AIO-DX):
PASS: build pkgs and build ISO
PASS: Install ISO and bootstrap
PASS: Verify that zerorpc/events.py file is updated
PASS: lock/unlock inactive controller
PASS: system host-device-image-update controller-1
Closes-Bug: 2101879
Change-Id: Ie7b75ae236e32f7a0d2f0147082134eafa363d09
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>