diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java index 1220bcee31..22df524985 100644 --- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java +++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketAuthorizationHandler.java @@ -77,6 +77,9 @@ public void channelRead(final ChannelHandlerContext ctx, final Object msg) { authorizer.authorize(user, requestMessage); ctx.fireChannelRead(requestMessage); break; + case Tokens.OPS_CLOSE: + ctx.fireChannelRead(requestMessage); + break; default: throw new AuthorizationException("This AuthorizationHandler only handles requests with OPS_BYTECODE or OPS_EVAL."); }