comparison src/org/eclipse/jetty/server/Connector.java @ 1008:b664624a4423

remove BuffersFactory
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 17:43:49 -0600
parents 945568ee77ac
children 4e7208df7741
comparison
equal deleted inserted replaced
1007:945568ee77ac 1008:b664624a4423
27 import java.util.concurrent.atomic.AtomicLong; 27 import java.util.concurrent.atomic.AtomicLong;
28 28
29 import javax.servlet.ServletRequest; 29 import javax.servlet.ServletRequest;
30 30
31 import org.eclipse.jetty.io.Buffers; 31 import org.eclipse.jetty.io.Buffers;
32 import org.eclipse.jetty.io.BuffersFactory; 32 import org.eclipse.jetty.io.PooledBuffers;
33 import org.eclipse.jetty.io.EndPoint; 33 import org.eclipse.jetty.io.EndPoint;
34 import org.eclipse.jetty.io.EofException; 34 import org.eclipse.jetty.io.EofException;
35 import org.eclipse.jetty.util.component.AggregateLifeCycle; 35 import org.eclipse.jetty.util.component.AggregateLifeCycle;
36 import org.eclipse.jetty.util.component.Dumpable; 36 import org.eclipse.jetty.util.component.Dumpable;
37 import org.slf4j.Logger; 37 import org.slf4j.Logger;
249 private Buffers _responseBuffers; 249 private Buffers _responseBuffers;
250 250
251 private void startBuffers() 251 private void startBuffers()
252 throws Exception 252 throws Exception
253 { 253 {
254 _requestBuffers = BuffersFactory.newBuffers(Buffers.Type.INDIRECT,_requestHeaderSize,_requestBufferType,_requestBufferSize,_maxBuffers); 254 _requestBuffers = new PooledBuffers(Buffers.Type.INDIRECT,_requestHeaderSize,_requestBufferType,_requestBufferSize,_maxBuffers);
255 _responseBuffers = BuffersFactory.newBuffers(Buffers.Type.INDIRECT,_responseHeaderSize,_responseBufferType,_responseBufferSize,_maxBuffers); 255 _responseBuffers = new PooledBuffers(Buffers.Type.INDIRECT,_responseHeaderSize,_responseBufferType,_responseBufferSize,_maxBuffers);
256 super.doStart(); 256 super.doStart();
257 } 257 }
258 258
259 private void stopBuffers() 259 private void stopBuffers()
260 throws Exception 260 throws Exception