Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the initial connection process "drain aware" #19

Merged
merged 5 commits into from
Mar 2, 2012

Conversation

JoeZ99
Copy link
Contributor

@JoeZ99 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants