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

1.x: fix timed replay() replaying old data for late subscribers #4023

Merged
merged 1 commit into from
Jun 22, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Jun 17, 2016

In the current master, replay only trucates its buffer if an event is received. This means if a subscriber subscribes between two events, the operator may replay old events. This PR skips those events. The operator is now consistent with the recently updated ReplaySubject.

The old behavior was somewhat expected by a few unit tests that have been updated.

Related: #3917, #3918.

@stevegury
Copy link
Member

👍
We should mention this change in the next changelog.

@akarnokd
Copy link
Member Author

Definitely.

@zsxwing Thoughts?

@akarnokd akarnokd merged commit 161dbef into ReactiveX:1.x Jun 22, 2016
@akarnokd akarnokd deleted the ReplayNoOldData branch June 22, 2016 07:44
@zsxwing
Copy link
Member

zsxwing commented Jun 22, 2016

👍 Agreed that this is a bug fix instead of a broken change.

@akarnokd
Copy link
Member Author

Thanks @zsxwing !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants