mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 21:09:13 +00:00
Fixing clearToFill bug
This commit is contained in:
parent
03443cd237
commit
2fca248352
@ -283,7 +283,7 @@ public class WebSocketAsyncConnection extends AbstractAsyncConnection implements
|
||||
TextFrame frame = new TextFrame(messages[i]);
|
||||
frame.setFin(true);
|
||||
raw[i] = bufferPool.acquire(policy.getBufferSize(),false);
|
||||
BufferUtil.clear(raw[i]);
|
||||
BufferUtil.clearToFill(raw[i]);
|
||||
generator.generate(raw[i],frame);
|
||||
BufferUtil.flipToFlush(raw[i],0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user