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();
|
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 {
|
||||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user