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

Don't close the connection when returning Multi #18470

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

stuartwdouglas
Copy link
Member

Fixes #18445

@stuartwdouglas
Copy link
Member Author

@FroMage @geoand any idea why this was here? It should not be necessary.

@geoand
Copy link
Contributor

geoand commented Jul 7, 2021

I personally don't

@geoand geoand requested a review from FroMage July 7, 2021 07:31
Copy link
Member

@FroMage FroMage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously it is necessary, otherwise it woudn't be there with a big fat comment. But I probably didn't know how to write a test for this, and I can't remember now. Let's fix it but please add a test that checks that we didn't close the connection?

And then when someone figures out something didn't work we'l get a reproducer for the original issue for free :)

@rasmusfaber
Copy link

Let's fix it but please add a test that checks that we didn't close the connection?

Feel free to use the test in https://github.com/rasmusfaber/quarkus-resteasy-reactive-connection-drop/blob/main/src/test/java/org/acme/getting/started/ReactiveGreetingResourceTest.java

It should be easy to modify it to fit into quarkus-integration-test-resteasy-mutiny (just change the endpoint) or I will be happy to make a pull request if you prefer.

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 8, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 5f120f8

Status Name Step Test failures Logs Raw logs
JVM Tests - JDK 11 Build Test failures Logs Raw logs
JVM Tests - JDK 16 Build Test failures Logs Raw logs

Full information is available in the Build summary check run.

Test Failures

⚙️ JVM Tests - JDK 11 #

📦 extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment

io.quarkus.resteasy.reactive.server.test.stream.StreamTestCase.testStreamingDoesNotCloseConnection line 78 - More details - Source on GitHub


⚙️ JVM Tests - JDK 16 #

📦 extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment

io.quarkus.resteasy.reactive.server.test.stream.StreamTestCase.testStreamingDoesNotCloseConnection line 78 - More details - Source on GitHub

@stuartwdouglas
Copy link
Member Author

Damnit, that test works on my machine

@FroMage
Copy link
Member

FroMage commented Jul 8, 2021

Damnit, that test works on my machine

That's like 95% of my daily routine, man 🤣

@gsmet gsmet merged commit 10ba8ac into quarkusio:main Jul 12, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarkus Resteasy Reactive does not respect keep-alive when using Multi<>s
5 participants