Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-11-07 05:48:07 +0000
committerGreg Wilkins2013-11-07 05:48:07 +0000
commitf7240fee384cdfa9095d11fd70cc8de905a794a3 (patch)
tree4cd90d429f7d65cf3cd96ca48fd06f59d6e02688 /jetty-servlets
parent1db4f4e43141edb25a170a25200c0c51d1ee48af (diff)
downloadorg.eclipse.jetty.project-f7240fee384cdfa9095d11fd70cc8de905a794a3.tar.gz
org.eclipse.jetty.project-f7240fee384cdfa9095d11fd70cc8de905a794a3.tar.xz
org.eclipse.jetty.project-f7240fee384cdfa9095d11fd70cc8de905a794a3.zip
421197 - synchronize gzip output finish
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipOutputStream.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipOutputStream.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipOutputStream.java
index 8f20c2f046..b6b45a67fb 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipOutputStream.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/GzipOutputStream.java
@@ -41,13 +41,15 @@ public class GzipOutputStream extends DeflaterOutputStream
out.write(GZIP_HEADER);
}
+ @Override
public synchronized void write(byte[] buf, int off, int len) throws IOException
{
super.write(buf,off,len);
_crc.update(buf,off,len);
}
- public void finish() throws IOException
+ @Override
+ public synchronized void finish() throws IOException
{
if (!def.finished())
{
@@ -58,6 +60,14 @@ public class GzipOutputStream extends DeflaterOutputStream
out.write(trailer);
}
}
+
+ @Override
+ public synchronized void close() throws IOException
+ {
+ super.close();
+ }
+
+
private void writeInt(int i, byte[] buf, int offset)
{

Back to the top