<p>Università di Bologna - CESIA VoIP <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14455">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_corosync: Fix crash in huge distributed environment.<br><br>1) Fix memory-leaks<br>   Added code to release ast_events extracted from corosync and stasis messages<br><br>2) Clean stasis cache when a member of the corosync cluster leaves the group<br>   Added code to remove from the stasis cache of the members remained on the<br>   group all the messages with the EID of the left member.<br>   If the device states of the left member remain in the stasis cache of other<br>   members, they will not be updated anymore and high priority cached values,<br>   like BUSY, will take precedence over current device states.<br><br>3) Stop corosync event propagation when node is not joined to the group<br>   Updated dispatch_thread_handler code to detect when asterisk is not joined<br>   to the corosync group and added some condition in publish_event_to_corosync<br>   code to send corosync messages only when joined.<br>   When a node is not joined its corosync daemon can't send messages:<br>   the cpg_mcast_joined function append new messages to the FIFO buffer until<br>   it's full and then it blocks indefinitely.<br>   In this scenario if the stasis_message_cb callback, registered by<br>   res_corosync to handle stasis messages, try to send a corosync messages,<br>   the thread of the stasis thread-pool will be blocked until the node join<br>   the corosync cluster.<br><br>ASTERISK-28888<br>Reported by: Università di Bologna - CESIA VoIP<br><br>Change-Id: Ie8e99bc23f141a73c13ae6fb1948d148d4de17f2<br>---<br>M res/res_corosync.c<br>1 file changed, 536 insertions(+), 276 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/14455/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14455">change 14455</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/14455"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: Ie8e99bc23f141a73c13ae6fb1948d148d4de17f2 </div>
<div style="display:none"> Gerrit-Change-Number: 14455 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Università di Bologna - CESIA VoIP <cesia.voip@unibo.it> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>