问题
I want to use a reactive client (Reactive WebSocketClient i.e ReactorNettyWebSocketClient) to talk to a server which I don't know if it is reactive or not. Does it make sense to use a reactive client to talk to a server which is not reactive?
I tried to connect to a server probably not reactive, and I got this error:
io.netty.handler.codec.http.websocketx.WebSocketHandshakeException: Invalid handshake response getStatus: 999 Unknown
at io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker13.verify(WebSocketClientHandshaker13.java:264)
at io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker.finishHandshake(WebSocketClientHandshaker.java:303)
at reactor.netty.http.client.WebsocketClientOperations.onInboundNext(WebsocketClientOperations.java:113)
at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:91)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
But I am not sure if this is because of reactive client trying to talk to a non-reactive or a different problem.
来源:https://stackoverflow.com/questions/57686462/if-i-use-a-reactive-client-should-the-server-be-reactive-too