diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-26 08:18:23 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-26 08:18:27 +0900 |
commit | 6b82c9ff7f208afacce80f522e5e7eea97ec9f12 (patch) | |
tree | 4e05ce9a74fc93142212be7a900cce25626bc562 /org.eclipse.jgit.lfs.server | |
parent | 35255a2a2938ee22009fbabd57df0a5206d41e8d (diff) | |
parent | 8ee64116b86009495920fcc91339ce9053e75dd9 (diff) | |
download | jgit-6b82c9ff7f208afacce80f522e5e7eea97ec9f12.tar.gz jgit-6b82c9ff7f208afacce80f522e5e7eea97ec9f12.zip |
Merge branch 'stable-4.10' into stable-4.11
* stable-4.10:
ObjectDownloadListener#onWritePossible: Add comment on return statement
Change-Id: I2ab21595531bcd487ce6a5cb0a3bc3c6f6f6e518
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server')
-rw-r--r-- | org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java index ef359121bb..62601915ee 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java @@ -136,6 +136,10 @@ public class ObjectDownloadListener implements WriteListener { } finally { context.complete(); } + // This is need to avoid endless loop in recent Jetty versions. + // That's because out.isReady() is returning true for already + // closed streams and because out.close() doesn't throw any + // exception any more when trying to close already closed stream. return; } } |