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

Rx3SseClient got disconnect after 5 mins #317

Open
VanKuang opened this issue Dec 6, 2023 · 2 comments
Open

Rx3SseClient got disconnect after 5 mins #317

VanKuang opened this issue Dec 6, 2023 · 2 comments

Comments

@VanKuang
Copy link

VanKuang commented Dec 6, 2023

Expected Behavior

Do not disconnect if server keep sending heartbeat, so the connection should be keep-alive.

Actual Behaviour

The sse client got disconnect after 5 mins, it was trigger by the WriterIdleTimeoutHandler in IdleStateHandler from Netty.
The idleStateHandler was added by https://github.com/micronaut-projects/micronaut-core/blob/v3.7.5/http-client/src/main/java/io/micronaut/http/client/netty/ConnectionManager.java#L609

Steps To Reproduce

Here is my client:

Rx3SseClient.create(URL) .eventStream() .subscribe()

Environment Information

No response

Example Application

No response

Version

2.4.1

@VanKuang
Copy link
Author

VanKuang commented Dec 6, 2023

Now I have to make a workaround: set readIdleTimeout to null to let ConnectionManager not adding IdleStateHandler - Which i don't think it is the right thing to do?

@sdelamo
Copy link
Contributor

sdelamo commented Jan 8, 2024

@VanKuang is this a Micronaut Framework 2 app? Does it happen in Micronaut Framework 4? Do you have a sample project which reproduces the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants