setSoLinger(Constants.DEFAULT_CONNECTION_LINGER);
setSoTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);
setTcpNoDelay(Constants.DEFAULT_TCP_NO_DELAY);
- setUseSendfile(Constants.DEFAULT_USE_SENDFILE);
+ // AJP does not use Send File
+ ((AprEndpoint) endpoint).setUseSendfile(false);
}
// --------------------------------------------------------- Public Methods
- public boolean getUseSendfile() { return endpoint.getUseSendfile(); }
- public void setUseSendfile(@SuppressWarnings("unused") boolean useSendfile) {
- /* No sendfile for AJP */
- }
-
public int getPollTime() { return ((AprEndpoint)endpoint).getPollTime(); }
public void setPollTime(int pollTime) { ((AprEndpoint)endpoint).setPollTime(pollTime); }
new ConcurrentHashMap<SocketWrapper<Long>, AjpAprProcessor>();
protected ConcurrentLinkedQueue<AjpAprProcessor> recycledProcessors =
- new ConcurrentLinkedQueue<AjpAprProcessor>() {
+ new ConcurrentLinkedQueue<AjpAprProcessor>() {
private static final long serialVersionUID = 1L;
protected AtomicInteger size = new AtomicInteger(0);
@Override
private AjpConnectionHandler cHandler;
- // --------------------------------------------------------- Public Methods
-
-
- // AJP does not use Send File.
- public boolean getUseSendfile() { return false; }
-
-
// ----------------------------------------------------- JMX related methods
@Override
/**
* Use this only if the processor is not available, otherwise use
- * {@link #release(NioChannel, Http11NioProcessor).
+ * {@link #release(NioChannel, AjpNioProcessor).
*/
@Override
public void release(NioChannel socket) {
// with "ERROR" level, so it will show up even on
// less-than-verbose logs.
AjpNioProtocol.log.error
- (sm.getString("http11protocol.proto.error"), e);
+ (sm.getString("ajpprotocol.proto.error"), e);
} finally {
if (processor.isAsync()) {
state = processor.asyncPostProcess();
new ConcurrentHashMap<SocketWrapper<Socket>, AjpProcessor>();
protected ConcurrentLinkedQueue<AjpProcessor> recycledProcessors =
- new ConcurrentLinkedQueue<AjpProcessor>() {
+ new ConcurrentLinkedQueue<AjpProcessor>() {
private static final long serialVersionUID = 1L;
protected AtomicInteger size = new AtomicInteger(0);
@Override