public GzipHttpOutputInterceptor(
     GzipFactory factory, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush) {
   this(
       factory,
       VARY_ACCEPT_ENCODING_USER_AGENT,
       channel.getHttpConfiguration().getOutputBufferSize(),
       channel,
       next,
       syncFlush);
 }
 public GzipHttpOutputInterceptor(
     GzipFactory factory,
     HttpField vary,
     HttpChannel channel,
     HttpOutput.Interceptor next,
     boolean syncFlush) {
   this(
       factory,
       vary,
       channel.getHttpConfiguration().getOutputBufferSize(),
       channel,
       next,
       syncFlush);
 }
示例#3
0
 public HttpOutput(HttpChannel channel) {
   _channel = channel;
   _interceptor = channel;
   _writeBlock =
       new SharedBlockingCallback() {
         @Override
         protected long getIdleTimeout() {
           long bto = getHttpChannel().getHttpConfiguration().getBlockingTimeout();
           if (bto > 0) return bto;
           if (bto < 0) return -1;
           return _channel.getIdleTimeout();
         }
       };
   HttpConfiguration config = channel.getHttpConfiguration();
   _bufferSize = config.getOutputBufferSize();
   _commitSize = config.getOutputAggregationSize();
   if (_commitSize > _bufferSize) {
     LOG.warn("OutputAggregationSize {} exceeds bufferSize {}", _commitSize, _bufferSize);
     _commitSize = _bufferSize;
   }
 }
示例#4
0
 public HttpOutput(HttpChannel<?> channel) {
   _channel = channel;
   _bufferSize = _channel.getHttpConfiguration().getOutputBufferSize();
   _commitSize = _bufferSize / 4;
 }