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

Add drain-before-shutdown behavior (fixes #24) #50

Closed

Conversation

jchambers
Copy link
Owner

This changes the PushManager's shutdown behavior to drain the internal retry queue before gracefully closing connections.

@jchambers jchambers mentioned this pull request Feb 9, 2014
@jchambers jchambers mentioned this pull request Feb 17, 2014
4 tasks
notification = queue.poll();
}

if (notification != null) {
connection.sendNotification(notification);
} else {
if (drainingBeforeShutdown) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you can't drain before you send all of your notifications?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retracted

@romanzadov
Copy link

👍

@jchambers
Copy link
Owner Author

@romanzadov Cool -- thanks for the read. Tests are failing, though, so we'll need to get that figured out before moving forward.

@jchambers
Copy link
Owner Author

I think this needs some non-trivial rethinking. Closing temporarily; will reopen when #47 and #51 are under control.

@jchambers jchambers closed this Feb 22, 2014
@jchambers jchambers deleted the drain_retry_queue_before_shutdown branch April 3, 2014 22:32
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