DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34967>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34967 Summary: setBufferSize() from HttpServletResponse fails Product: Tomcat 5 Version: 5.5.9 Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] setBufferSize() from HttpServletResponse fails. Scenario: a) Servlet A includes servlet B using a NamedDispatcher. b) Servlet B tests if buffering is supported by getBuffersize . If buffering is supported servlet B uses setBufferSize to enlarge the buffer. This does not work. This is a code snippet from servlet B: public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //tests if buffering is supported int orgSize = response.getBufferSize() if (orgSize == 0) { // not supported … } else if ( orgSize > 0) { int modSize=orgSize+1; try { response.setBufferSize(modSize) ; int newSize = response.getBufferSize(); if (newSize >= modSize) { // (1) successful } else { // (2) failed } } catch (IllegalStateException e) { // (3) IllegalStateException caught } } I ran this scenario and servlet B failed at point (2). If I run servlet B stand alone (i.e. without including it from servlet A), it works as expected and reaches point (1). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]