Skip to content

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

Merged
akarnokd merged 1 commit intoReactiveX:1.xfrom
akarnokd:ReplayNoOldData
Jun 22, 2016
Merged

1.x: fix timed replay() replaying old data for late subscribers#4023
akarnokd merged 1 commit intoReactiveX:1.xfrom
akarnokd:ReplayNoOldData

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