public DefaultNioSocketChannelIoSessionConfig() { super(new DefaultNioSocketChannelConfig(new Socket())); // We could make this conditional (if !ENABLE_BUFFER_SIZE) to allow users to turn on variable buffer size via // the System property (as we used to in pure Mina days), but we won't because it would break zero copy and // is known to break TrafficShapingFilter so we don't want anyone ever to use it. channelConfig.setReceiveBufferSizePredictorFactory( new FixedReceiveBufferSizePredictorFactory(getReadBufferSize())); }