0 Replies Latest reply on Feb 24, 2004 10:57 AM by Greg Emerick

    servlet response buffer size

    Greg Emerick Newbie

      I'm using jboss-3.2.1_tomcat-4.1.24.

      I need to set the size of the response buffer in a Servlet. The default (found with response.getBufferSize) is 8192.

      I've tried using response.setBufferSize, I've tried resetting after the call, but no matter what, getBuffersize returns 8192.

      log.debug( "output buffer size: " + response.getBufferSize());
      response.setBufferSize(512);
      response.reset();
      log.debug( "output buffer size reset: " + response.getBufferSize());

      Result:
      output buffer size: 8192
      output buffer size reset: 8192

      I've also tried changing buffersize in the connector setup in jbossweb-tomcat.sar\META-INF\jboss-service.xml. Like so:
       <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
       port="80" minProcessors="3" maxProcessors="10" buffersize="512"
       enableLookups="true" acceptCount="10" debug="0"
       connectionTimeout="20000" useURIValidationHack="false" redirectPort="443" />


      Can someone please give me a hand?

      Thanks, Greg