JETTY-1174 Close rather than finish Gzipstreams to avoid JVM leak

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1402 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-03-22 23:17:28 +00:00
parent e2ad04d28d
commit 798c664698
2 changed files with 10 additions and 4 deletions

View File

@ -45,7 +45,9 @@ jetty-7.0.2.RC0
+ JETTY-1179 Persistant session tables created on MySQL use wrong datatype
+ JETTY-1184 shrink thread pool even with frequent small jobs
+ JETTY-1133 Handle multiple URL ; parameters
+ JETTY-1174 Close rather than finish Gzipstreams to avoid JVM leak
+ JETTY-1192 Fixed Digested POST
+ JETTY-1199 FindBugs cleanups
+ COMETD-46 reset ContentExchange response content on resend
+ Added IPAccessHandler
+ Updated Servlet3Continuation to final 3.0.20100224

View File

@ -485,8 +485,9 @@ public class GzipFilter extends UserAgentFilter
}
if (_gzOut!=null)
_gzOut.finish();
_out.close();
_gzOut.close();
else
_out.close();
_closed=true;
}
}
@ -503,8 +504,11 @@ public class GzipFilter extends UserAgentFilter
doGzip();
}
if (_gzOut!=null)
_gzOut.finish();
if (_gzOut!=null && !_closed)
{
_closed=true;
_gzOut.close();
}
}
}