From 8e1645f06b2968d12cb55efbb7e6d48cf16d5ff6 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 19 Jun 2012 16:27:53 -0500 Subject: [PATCH] put framing butting in new buffer --- .../org/eclipse/jetty/websocket/generator/FrameGenerator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/FrameGenerator.java b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/FrameGenerator.java index 1d02369a11e..35f2374fa60 100644 --- a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/FrameGenerator.java +++ b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/FrameGenerator.java @@ -72,6 +72,8 @@ public abstract class FrameGenerator ByteBuffer buffer = ByteBuffer.allocate(buflen); // TODO: figure out how to get this from a bytebuffer pool + buffer.put(framing); + generatePayload(buffer, frame); return buffer; }