-
Notifications
You must be signed in to change notification settings - Fork 161
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
Quarkus vertx issues with Vite dev mode connection #15744
Comments
Is IPv4 not available? Vite is configured to bind to 127.0.0.1
but based on the logs it seems like it does not bind to that but to IPv6? |
It would probably be possible to parse the
from the Vite output and always use the address from there, then it would work no matter how it is bound |
Broader stacktrace: |
It seems like a deadlock in the The following one blocks on browserSession.getBasicRemote().sendText(msg);
getLogger().debug("Message sent to browser: " + msg); Refactoring it with asynchronous call seems to work and Quarkus test pass browserSession.getAsyncRemote().sendText(msg, result -> {
getLogger().debug("Message sent to browser: " + msg);
}); Just to clarify, the deadlock happens on Undertow stack |
If that helps, I see no reason why not to change it |
The problem with IPv6 is probably because the development mode integration tests modules set |
Prevents deadlocks in Quarkus environments. Fixes #15744
Prevents deadlocks in Quarkus environments. Fixes #15744
This ticket/PR has been released with Vaadin 24.0.0.alpha10 and is also targeting the upcoming stable 24.0.0 version. |
Description of the bug
Discovered during Quarkus update:
2023-01-24 09:15:41,523 WARN [io.ver.cor.imp.BlockedThreadChecker] (vertx-blocked-thread-checker) Thread Thread[vert.x-eventloop-thread-3,5,main] has been blocked for 3895 ms, time limit is 2000 ms: io.vertx.core.VertxException: Thread blocked
Quarkus build works using
java.net.preferIPv4Stack=true
On development mode connecting to dev server is not possible while using IPv6.
Related to #15689
Expected behavior
Localhost IP should not be hardcoded?
Minimal reproducible example
Build app in dev mode
Versions
The text was updated successfully, but these errors were encountered: