diff src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java @ 1005:0e96ce3db20a

remove HttpBuffers
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 02:42:05 -0600
parents 21910079096e
children 945568ee77ac
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java	Sat Oct 22 23:00:57 2016 -0600
+++ b/src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java	Sun Oct 23 02:42:05 2016 -0600
@@ -30,7 +30,6 @@
 import org.eclipse.jetty.io.AsyncEndPoint;
 import org.eclipse.jetty.io.Buffers;
 import org.eclipse.jetty.io.Buffers.Type;
-import org.eclipse.jetty.io.BuffersFactory;
 import org.eclipse.jetty.io.EndPoint;
 import org.eclipse.jetty.io.RuntimeIOException;
 import org.eclipse.jetty.io.nio.AsyncConnection;
@@ -53,7 +52,6 @@
 public final class SslSelectChannelConnector extends SelectChannelConnector
 {
 	private final SslContextFactory _sslContextFactory;
-	private Buffers _sslBuffers;
 
 	/* ------------------------------------------------------------ */
 	public SslSelectChannelConnector(Server server,int port)
@@ -189,29 +187,12 @@
 
 		SSLSession sslSession = sslEngine.getSession();
 
-		_sslBuffers = BuffersFactory.newBuffers(
-				getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,sslSession.getApplicationBufferSize(),
-				getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,sslSession.getApplicationBufferSize(),
-				getUseDirectBuffers()?Type.DIRECT:Type.INDIRECT,getMaxBuffers()
-		);
-
-		if (getRequestHeaderSize()<sslSession.getApplicationBufferSize())
-			setRequestHeaderSize(sslSession.getApplicationBufferSize());
-		if (getRequestBufferSize()<sslSession.getApplicationBufferSize())
-			setRequestBufferSize(sslSession.getApplicationBufferSize());
+		if (_buffers.getRequestHeaderSize()<sslSession.getApplicationBufferSize())
+			_buffers.setRequestHeaderSize(sslSession.getApplicationBufferSize());
+		if (_buffers.getRequestBufferSize()<sslSession.getApplicationBufferSize())
+			_buffers.setRequestBufferSize(sslSession.getApplicationBufferSize());
 
 		super.doStart();
 	}
 
-	/* ------------------------------------------------------------ */
-	/**
-	 * @see org.eclipse.jetty.server.nio.SelectChannelConnector#doStop()
-	 */
-	@Override
-	protected void doStop() throws Exception
-	{
-		_sslBuffers = null;
-		super.doStop();
-	}
-
 }