-
Notifications
You must be signed in to change notification settings - Fork 3k
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
retry: fixes and tests #547
Conversation
Fix retry operator to unsubscribe from the source whenever the source emits an error and a new retry will be attempted. Also fix the operator to unsubscribe the internal retried subscription to the source whenever the result Observable is unsubscribed. Resolves issue ReactiveX#546.
What happens if resubscription occurs sufficiently large, i.e) invoked with |
Though I think that's sort of extreme cases usually do not expect to happen in real. |
In marble tests there is a time limit, |
Actually question was about not creating test cases, trying with actual code such as |
With RxJS 4,
I'd expect RxJS Next to do the same. |
Interesting, thanks for confirmation. |
Actually, sorry, that was RxJS 2. With RxJS 4, the page freezes. Probably doing an infinite loop. |
I just did quick try with RxJS4 + node myself and behavior was same, it seems does infinite retrying. I can give a try with this changes once it's merged. Again, thanks! :) |
@staltz ... this is precisely the solution I was thinking of when I first found this issue the other day. Nice work. |
Merged with 09b475a.. Also, I had to pin |
Good! |
Resolves (half of) #546.