ha/service-mgmt/sm
Bin Qian d91b069daf Avoid potential blocking of heartbeat thread
This is to avoid waiting for hbs cluster query for sending SM alive
pulse. When a hbs cluster query or alive pulse is being sent, do not
queue the subsequent alive pulse, as current request being sent is good
enough to update hbs agent.
Also move the function retrieving sock address to initial from inside
the query sending procedure. The function getaddrinfo to avoid indirectly
calling malloc, which invokes malloc_atfork to potentially a blocking call.

TCs:
   This could improve in extreme situation only, passed regression.

Closes-bug: 2025504

Change-Id: I520b42f0330b670e301279c2e42670d40361adc5
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2023-11-17 21:01:08 +00:00
..
centos Debian: Remove conf files from etc-pmon.d 2022-09-26 13:40:41 +00:00
debian Update debian package versions to use git commits 2023-02-10 10:14:48 -08:00
opensuse openSUSE: Open Build Service Artifacts 2019-10-09 10:05:20 -05:00
scripts Set max open file limit for sm service 2023-01-03 17:51:01 -03:00
src Avoid potential blocking of heartbeat thread 2023-11-17 21:01:08 +00:00
LICENSE Remove version from sm folder 2019-09-26 14:11:31 -05:00
Makefile Remove version from sm folder 2019-09-26 14:11:31 -05:00