saltstack/salt — pull request #8952 by SmithSamuelM (2013-12-02 21:20:31+00:00)
Title: Bandaid fix to race condition with runner proc_runner and event push pul...

...l ZeroMQ socket

Fix is to add sleep after last fire event so that the runner process is not reaped until after
the event has made it out of the push socket. This is a bandaid because it does not guarantee
to work if the event process is slow and does not process the event before the sleep expires.

Added a timeout to the fire event and push socket so the send call blocks until the message is sent
Also upped the Linger timeout but neither of these work because of how the process is getting reaped

A better solution is to change how the process is reaped so that linger and timeout will work.

The best solution is to use a req rep socket so there is positive confirmation that the event
made it.