Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/SslConnection.java @ 1046:a8c92b0a08ed
add JBuffer
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 22:39:39 -0700 |
parents | b71ad168fe34 |
children | 2b769da7f67d |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SslConnection.java Sun Nov 06 14:54:43 2016 -0700 +++ b/src/org/eclipse/jetty/io/nio/SslConnection.java Mon Nov 07 22:39:39 2016 -0700 @@ -31,6 +31,7 @@ import org.eclipse.jetty.io.AbstractConnection; import org.eclipse.jetty.io.AsyncEndPoint; import org.eclipse.jetty.io.Buffer; +import org.eclipse.jetty.io.BufferUtil; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.server.AsyncHttpConnection; import org.slf4j.Logger; @@ -50,7 +51,7 @@ { private final Logger _logger = LoggerFactory.getLogger("org.eclipse.jetty.io.nio.ssl"); - private static final NIOBuffer __ZERO_BUFFER = new IndirectNIOBuffer(0); + private static final NIOBuffer __ZERO_BUFFER = BufferUtil.EMPTY_BUFFER; private static final ThreadLocal<SslBuffers> __buffers = new ThreadLocal<SslBuffers>(); private final SSLEngine _engine; @@ -80,9 +81,9 @@ SslBuffers(int packetSize, int appSize) { - _in=new IndirectNIOBuffer(packetSize); - _out=new IndirectNIOBuffer(packetSize); - _unwrap=new IndirectNIOBuffer(appSize); + _in = BufferUtil.newBuffer(packetSize); + _out = BufferUtil.newBuffer(packetSize); + _unwrap = BufferUtil.newBuffer(appSize); } }