You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See in the console 2021-06-01 01:32:50,570 INFO [org.acm.und.SupersonicChatSocket] (vert.x-eventloop-thread-11) I'm a WebSocket! notice vert.x-eventloop-thread-11
Now, set the property quarkus.websocket.dispatch-to-worker=true in application.properties
Redo step 3 and 4 and observe that it still logs a vert.x-eventloop-thread-X thread.
You can do the same thing with Quarkus 1.11.3.Final, after setting the option to true you will see WebSocket is executed on an executor thread like it should be:
2021-06-01 01:30:27,083 INFO [org.acm.und.SupersonicChatSocket] (executor-thread-198) I am a WebSocket!
The text was updated successfully, but these errors were encountered:
Feavy
changed the title
Option quarkus.websockets.dispatch-to-worker=true doesn't work anymore in Quarkus 1.13
Option quarkus.websocket.dispatch-to-worker=true doesn't work anymore in Quarkus 1.13
Jun 1, 2021
Describe the bug
Setting the value of
quarkus.websocket.dispatch-to-worker
totrue
doesn't change anything. WebSockets remain on vert.x-eventloop threads.Expected behavior
WebSockets should be executed on executor threads (like in Quarkus 1.11).
Actual behavior
WebSockets are executed on vert.x-eventloop threads instead of executor ones.
To Reproduce
SupersonicChatSocket#onOpen
likeLOG.info("I am a WebSocket!");
2021-06-01 01:32:50,570 INFO [org.acm.und.SupersonicChatSocket] (vert.x-eventloop-thread-11) I'm a WebSocket!
noticevert.x-eventloop-thread-11
quarkus.websocket.dispatch-to-worker=true
in application.propertiesvert.x-eventloop-thread-X
thread.You can do the same thing with Quarkus 1.11.3.Final, after setting the option to true you will see WebSocket is executed on an executor thread like it should be:
2021-06-01 01:30:27,083 INFO [org.acm.und.SupersonicChatSocket] (executor-thread-198) I am a WebSocket!
The text was updated successfully, but these errors were encountered: