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

OnComplete callback registered via SseEventSource.register() must be called only once #1599

Merged
merged 3 commits into from Jul 10, 2018

Conversation

NicoNes
Copy link
Contributor

@NicoNes NicoNes commented Jul 7, 2018

This pull request is to remove multiple invocation of SseEventSource completion handlers and enable test about it.

@ronsigal You might be interested by this PR since it seem's that the regression has been introduced by #1478

@rnetuka and @kanovotn You also might be interested by this PR as an enrichment to what have been done in https://github.com/resteasy/Resteasy/pull/1435/files

…ass.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>
…dlers

when there are further events to be received.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>
Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>
@asoldano asoldano merged commit abd10de into resteasy:master Jul 10, 2018
@asoldano
Copy link
Member

Thanks @NicoNes !

asoldano pushed a commit to asoldano/Resteasy that referenced this pull request Jul 10, 2018
…ister() must be called only once (resteasy#1599)

* Remove @category(ExpectedFailing.class) on test that is supposed to pass.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>

* Add internalClose() to close SseEventSource and invoke completion handlers
when there are further events to be received.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>

* Code cleaning to improve lisibility

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>
asoldano pushed a commit that referenced this pull request Jul 10, 2018
…ister() must be called only once (#1599)

* Remove @category(ExpectedFailing.class) on test that is supposed to pass.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>

* Add internalClose() to close SseEventSource and invoke completion handlers
when there are further events to be received.

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>

* Code cleaning to improve lisibility

Signed-off-by: NicoNes <nicolas.nesmon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants