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

Prevent channel shutdown if still active #22

Merged
merged 6 commits into from
Jan 23, 2016
Merged

Conversation

pardahlman
Copy link
Owner

I've updated the code in Publisher so that where it previously closed the channel after 10 seconds no matter what, it will now see if there are still publishing going on on the channel and if that's the case wait for another 10 seconds before checking again.

While looking at the publishing flow, I had a look at the PublishAcknowledger and made sure that the entities in the dictionary existed before accessing them.

par.dahlman added 4 commits January 23, 2016 00:38
These operations are async, so it is nicer to don't expect key to be in
ditionary but rather perform TryGet:s, and log hard.
This is done by checking number of publishes made during one second. If none,
then the channel is considered inactive and closed. If there are any publishes,
it will check again after ten seconds.
So that it may be overriden. This is because the strategy with the two timers
might not suit everyone.
pardahlman pushed a commit that referenced this pull request Jan 23, 2016
Prevent channel shutdown if still active
@pardahlman pardahlman merged commit 7dae2e8 into release/1.8.2 Jan 23, 2016
@pardahlman
Copy link
Owner Author

This issue will be part of 1.8.2

@pardahlman pardahlman deleted the issue/#21 branch January 27, 2016 09:04
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.

1 participant