From 8ab94510865619767645a109104afc54149093e9 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 29 Feb 2012 09:19:18 -0800 Subject: [PATCH] Fix #208 - SslHandler does not use ChannelBufferFactory to create a new buffer * Also fixed build failure caused by wrong fork mode --- handler/src/main/java/io/netty/handler/ssl/SslHandler.java | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 0b37456911..fa519556c9 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -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 { diff --git a/pom.xml b/pom.xml index d4daaae9f8..7c47545104 100644 --- a/pom.xml +++ b/pom.xml @@ -268,7 +268,7 @@ maven-surefire-plugin 2.12 - never + once **/Abstract* **/TestUtil*