Skip to content

Commit

Permalink
[FIXED JENKINS-19473] Trying to work around jzlib bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Sep 11, 2013
1 parent 96187b7 commit b02d457
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion changelog.html
Expand Up @@ -55,7 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
<li class='major bug'>
Working around a GZip compression bug in jzlib affecting transfer of certain large, repetitive artifacts.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-19473">issue 19473</a>)
</ul>
</div><!--=TRUNK-END=-->

Expand Down
7 changes: 6 additions & 1 deletion core/src/main/java/hudson/FilePath.java
Expand Up @@ -632,7 +632,12 @@ public InputStream extract(InputStream _in) throws IOException {
}
}
public OutputStream compress(OutputStream out) throws IOException {
return new GZIPOutputStream(new BufferedOutputStream(out));
return new GZIPOutputStream(new BufferedOutputStream(out),
// TODO JENKINS-19473 workaround; replace when jzlib fixed
new com.jcraft.jzlib.Deflater(6, 15+16, 9), // use 9 for memLevel
512,
true
);
}
};

Expand Down

0 comments on commit b02d457

Please sign in to comment.