kurokikaze/limestone — pull request #19 by JoeZ99 (2011-12-02 12:57:14+00:00)
Title: Make the initial connection process "drain aware"

In the process of
- send version number
- send persistent flag (if applicable)
- emit 'sphinx.connected' event so querys can be sent

I've added "drain" event support, so limestone won't write to the sphinx server before the previous written thing is complete.

send version number ---> wait for drain --> send persistent flat ---> wait for drain --> _connected=true

but, This only works on node 0.6. that's why I've put it apart from the master. I personally thing is not big deal, limestone is still in its early stage, but I leave it to you.

As usual, any comments are welcome.