hilla
hilla copied to clipboard
Long polling with Flux emitters seems to fail.
Describe the bug
Flux endpoint with stream doesn't work with long polling as a flux connection transport.
Flux endpoints with direct value work fine, but streams like Flux.range(1, n).delayElements(Duration.ofMillis(200))
doesn't work and has an error:
java.lang.IllegalStateException: The request object has been recycled and is no longer associated with this facade
Expected-behavior
Long polling should work the same as websocket connection
Reproduction
Enable long polling as Flux connection transport by creating connect-client.js
and passing Atmosphere.Request
with transport: "long-polling"
.
And run:
packages/java/tests/spring/endpoints/src/main/java/com/vaadin/flow/connect/Application.java
try count(10) method
System Info
Hilla 24.5