Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-12-17 18:15:06 -0500
committerJoakim Erdfelt2015-12-17 18:15:06 -0500
commit1543601968a6901717a9a403c4894a4280ffcc2f (patch)
treec3a415aee425ff2bbb64fd0be66e5c2bbfd512f1
parent5f27a62aae0bccb5b2630015a5d14d77d2cdf91d (diff)
downloadorg.eclipse.jetty.project-1543601968a6901717a9a403c4894a4280ffcc2f.tar.gz
org.eclipse.jetty.project-1543601968a6901717a9a403c4894a4280ffcc2f.tar.xz
org.eclipse.jetty.project-1543601968a6901717a9a403c4894a4280ffcc2f.zip
484612 - Restore WebSocket Session.close() sending 1000/Normal status code
-rw-r--r--jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java3
1 files changed, 2 insertions, 1 deletions
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 e0e2c91d08..c923a0f1aa 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

Back to the top