Using writeAndFlush to response PingWebSocketFrame with PongWebSocketFrame, instead... 44/66044/2
authorHeYunBo <he.yunbo@zte.com.cn>
Wed, 29 Nov 2017 12:20:36 +0000 (20:20 +0800)
committerJakub Toth <jakub.toth@pantheon.tech>
Mon, 11 Dec 2017 15:11:10 +0000 (15:11 +0000)
Change-Id: Icc749f3a5255cf7385274dd546251160bcd0f8aa
Signed-off-by: HeYunBo <he.yunbo@zte.com.cn>
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/websockets/WebSocketServerHandler.java [changed mode: 0644->0755]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/websockets/WebSocketServerHandler.java [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 299834a..1f69dca
@@ -175,7 +175,7 @@ public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object>
             }
             return;
         } else if (frame instanceof PingWebSocketFrame) {
-            ctx.channel().write(new PongWebSocketFrame(frame.content().retain()));
+            ctx.channel().writeAndFlush(new PongWebSocketFrame(frame.content().retain()));
             return;
         }
     }
old mode 100644 (file)
new mode 100755 (executable)
index b059989..fc7573a
@@ -175,7 +175,7 @@ public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object>
             }
             return;
         } else if (frame instanceof PingWebSocketFrame) {
-            ctx.channel().write(new PongWebSocketFrame(frame.content().retain()));
+            ctx.channel().writeAndFlush(new PongWebSocketFrame(frame.content().retain()));
             return;
         }
     }