Fix #208 - SslHandler does not use ChannelBufferFactory to create a new buffer
* Also fixed build failure caused by wrong fork mode
This commit is contained in:
parent
fb4ee5207c
commit
8ab9451086
@ -972,7 +972,7 @@ public class SslHandler extends FrameDecoder
|
||||
outAppBuf.flip();
|
||||
|
||||
if (outAppBuf.hasRemaining()) {
|
||||
ChannelBuffer frame = ChannelBuffers.buffer(outAppBuf.remaining());
|
||||
ChannelBuffer frame = ctx.getChannel().getConfig().getBufferFactory().getBuffer(outAppBuf.remaining());
|
||||
frame.writeBytes(outAppBuf.array(), 0, frame.capacity());
|
||||
return frame;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user