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()
|
||||
{
|
||||
_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();
|
||||
|
|
Loading…
Reference in New Issue