mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 07:05:55 +00:00
[JENKINS-14362] Switch to jzlib for GZIP streaming.
This commit is contained in:
1 parent
ed4ab53286
commit
3701a327a7
15 files changed
+24
-25
No files matched your search
@@ -92,8 +92,8 @@ import java.util.regex.Pattern;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.zip.GZIPOutputStream;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
import com.jcraft.jzlib.GZIPInputStream;
|
||||
import com.jcraft.jzlib.GZIPOutputStream;
|
||||
|
||||
import com.sun.jna.Native;
|
||||
import hudson.os.PosixException;
|
||||
@@ -619,7 +619,7 @@ public final class FilePath implements Serializable {
|
||||
public InputStream extract(InputStream _in) throws IOException {
|
||||
HeadBufferingStream in = new HeadBufferingStream(_in,SIDE_BUFFER_SIZE);
|
||||
try {
|
||||
return new GZIPInputStream(in,8192);
|
||||
return new GZIPInputStream(in, 8192, true);
|
||||
} catch (IOException e) {
|
||||
// various people reported "java.io.IOException: Not in GZIP format" here, so diagnose this problem better
|
||||
in.fillSide();
|
||||
|
||||
Reference in new issue
Block a user