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:
Trustin Lee 2012-02-29 09:19:18 -08:00
parent fb4ee5207c
commit 8ab9451086
2 changed files with 2 additions and 2 deletions

View File

@ -972,7 +972,7 @@ public class SslHandler extends FrameDecoder
outAppBuf.flip(); outAppBuf.flip();
if (outAppBuf.hasRemaining()) { 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()); frame.writeBytes(outAppBuf.array(), 0, frame.capacity());
return frame; return frame;
} else { } else {

View File

@ -268,7 +268,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version> <version>2.12</version>
<configuration> <configuration>
<forkMode>never</forkMode> <forkMode>once</forkMode>
<excludes> <excludes>
<exclude>**/Abstract*</exclude> <exclude>**/Abstract*</exclude>
<exclude>**/TestUtil*</exclude> <exclude>**/TestUtil*</exclude>