-
Notifications
You must be signed in to change notification settings - Fork 354
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
Ensure Subscriber is removed from sendingSubscriptions #962
Ensure Subscriber is removed from sendingSubscriptions #962
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it a little differently. Let's remove the subscriber right immediately at the onNext
method. Spec says that in the case of NEXT_COMPLETE
no frames should be sent.
Thus, we should consider only 3 possible outcomes:
onNext -> remove subscriber and send the NEXT_COMPLETE frame
only onComplete -> remove subscriber and send the COMPLETE frame
only onError -> remove subscriber and send the ERROR frame
if
onNext + onComplete (do nothing at onComplete)
onNext + onError (drop error at onError)
Closes rsocketgh-961 Signed-off-by: Rossen Stoyanchev <[email protected]>
a7000fa
to
ae94de0
Compare
Good idea, I've updated the PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@OlegDokuka could you release 1.0.4 to include this bug fix? it's very important for Spring Boot 2.3.X. |
Fix for #961.