hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Long polling with Flux emitters seems to fail.

Open krissvaa opened this issue 5 months ago • 0 comments

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

krissvaa avatar Aug 30 '24 07:08 krissvaa