Make the initial connection process "drain aware" #19

merged 5 commits into from Mar 2, 2012


None yet
2 participants

JoeZ99 commented Dec 2, 2011

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.

kurokikaze added a commit that referenced this pull request Mar 2, 2012

@kurokikaze kurokikaze merged commit fa0acab into kurokikaze:master Mar 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment