]> source.dussan.org Git - jgit.git/commitdiff
Disable response compression on /git-receive-pack URLs 11/9111/1
authorShawn Pearce <spearce@spearce.org>
Fri, 7 Dec 2012 20:19:13 +0000 (12:19 -0800)
committerShawn Pearce <spearce@spearce.org>
Fri, 7 Dec 2012 20:28:36 +0000 (12:28 -0800)
Compressing the response with gzip causes the stream to delay
flushing until gzip has seen the entire response message, or buffers
fill up and the compressed data has to be sent. This hides the
resolving progress monitor from the client, as well as any other
progress messages the server might be trying to send.

Disable compression in receive, matching what /git-upload-pack has.

Change-Id: Ic8d8abe1f43c3f540d1ee7c43a8947a555307d94

org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java

index 3d6c35b0b6f81438508264fa0bb13b676a4aadd6..d1c258047b3d55725705d20da5eccbe50479b98b 100644 (file)
@@ -171,7 +171,7 @@ class ReceivePackServlet extends HttpServlet {
                        return;
                }
 
-               SmartOutputStream out = new SmartOutputStream(req, rsp, true) {
+               SmartOutputStream out = new SmartOutputStream(req, rsp, false) {
                        @Override
                        public void flush() throws IOException {
                                doFlush();