415745 Include followed by forward using a PrintWriter incurs unnecessary delay
This commit is contained in:
parent
7d308bf8a5
commit
ac0e30bbb7
|
@ -175,6 +175,10 @@ public class Response implements HttpServletResponse
|
||||||
public void included()
|
public void included()
|
||||||
{
|
{
|
||||||
_include.decrementAndGet();
|
_include.decrementAndGet();
|
||||||
|
if (_outputType == OutputType.WRITER)
|
||||||
|
{
|
||||||
|
_writer.reopen();
|
||||||
|
}
|
||||||
_out.reopen();
|
_out.reopen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,6 +815,8 @@ public class Response implements HttpServletResponse
|
||||||
{
|
{
|
||||||
case WRITER:
|
case WRITER:
|
||||||
_writer.close();
|
_writer.close();
|
||||||
|
if (!_out.isClosed())
|
||||||
|
_out.close();
|
||||||
break;
|
break;
|
||||||
case STREAM:
|
case STREAM:
|
||||||
getOutputStream().close();
|
getOutputStream().close();
|
||||||
|
|
Loading…
Reference in New Issue