bug 321 - Stop reconnecting to providers
authorSteve Singer <ssinger@ca.afilias.info>
Wed, 30 Oct 2013 19:51:23 +0000 (15:51 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Sat, 2 Nov 2013 18:59:03 +0000 (14:59 -0400)
commit79ee28075ef40f2a8f04198743d8215fadd7e596
treec00a0da835139b07246ab009f0ac7b586d277107
parent0a5bf0d3b0d49cb39edd7094eb2f17594cc4eb1b
bug 321 - Stop reconnecting to providers

Event origins that are not set origins will have
multiple  li_origin/li_receiver pairs in sl_listen
we listen for events from these origins from multiple
sources.   This means a node such as node 2 might
receive an event from ev_origin=1 via event provider 1
then receive the next event with ev_origin=1 from
event provider 2.  Slon keeps connecting and
disconnecting from these providers.

Instead keep of dropping the connections to
event providers we keep them around unless
a reconfiguration has taken place.  This lets
us use the connection for the event_provider
we received the event from.
src/slon/remote_worker.c