From 1543601968a6901717a9a403c4894a4280ffcc2f Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 17 Dec 2015 16:15:06 -0700 Subject: [PATCH] 484612 - Restore WebSocket Session.close() sending 1000/Normal status code --- .../org/eclipse/jetty/websocket/common/WebSocketSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java index e0e2c91d08b..c923a0f1aa5 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java @@ -94,7 +94,8 @@ public class WebSocketSession extends ContainerLifeCycle implements Session, Inc @Override public void close() { - connection.close(); + /* This is assumed to always be a NORMAL closure, no reason phrase */ + connection.close(StatusCode.NORMAL, null); } @Override