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
org.springframework.cloud.gateway.config.GatewayAutoConfiguration creates an instance of org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy with a reactor.netty.http.server.WebsocketServerSpec.Builder which is reused for multiple clients with different protocols.
From our point of view this is a serious bug, because we use websockets for both stomp and video streams and this bug causes the video streams to stop working with spring-cloud-gateway 3.0.x.
Johannes-Rost
changed the title
ReactorNettyRequestUpgradeStrategy broken in GatewayAutoConfiguration
ReactorNettyRequestUpgradeStrategy WebSocket sub protocol handling broken in GatewayAutoConfiguration
Mar 1, 2021
org.springframework.cloud.gateway.config.GatewayAutoConfiguration
creates an instance oforg.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy
with areactor.netty.http.server.WebsocketServerSpec.Builder
which is reused for multiple clients with different protocols.But the Builder should not be reused: spring-projects/spring-framework#25315
I do not have a sample, but I think the referenced bug report explains the error.
This bug was introduced in 3.0.x:
The
WebsocketServerSpec.Builder
implementsSupplier<WebsocketServerSpec.Builde>
but does not return a fresh instance whenget()
is invoked.The text was updated successfully, but these errors were encountered: