wearefractal/vein — pull request #4 by bitmage (2012-08-30 05:35:21+00:00)
Title: delete callbacks after running

We tracked down an issue where the callbacks for services were getting called multiple times for the same request. This guards against any duplicate calls at the vein level by deleting the callback once it's been called, and an if guard to do nothing if the callback is gone.

It would be nice to know why the actual message was duplicating. I think it might be something at the engine IO level, or one of the protocols it's falling back to. We were having no issues on our development machines but on production code was being run 4x or 8x due to nested service calls to vein.