415745 Include followed by forward using a PrintWriter incurs unnecessary delay

This commit is contained in:
Jan Bartel 2013-08-27 17:33:16 +10:00
parent 7d308bf8a5
commit ac0e30bbb7
1 changed files with 6 additions and 0 deletions

View File

@ -175,6 +175,10 @@ public class Response implements HttpServletResponse
public void included()
{
_include.decrementAndGet();
if (_outputType == OutputType.WRITER)
{
_writer.reopen();
}
_out.reopen();
}
@ -811,6 +815,8 @@ public class Response implements HttpServletResponse
{
case WRITER:
_writer.close();
if (!_out.isClosed())
_out.close();
break;
case STREAM:
getOutputStream().close();