jgit/org.eclipse.jgit.lfs.server
David Ostrovsky f8e514c74a ObjectDownloadListener: Return from onWritePossible when data is written
When buffer was written not only call AsyncContext#complete() but also
return from the ObjectDownloadListener#onWritePossible(). This avoids
endless loop after upgrading from Jetty 9.3.x to 9.4.x lines.

In Jetty example implementation:[1] the return statemnt is also used:

  // If we are at EOF then complete
  if (len < 0)
  {
    async.complete();
    return;
  }

See also this issue upstream: [2].

[1] https://webtide.com/servlet-3-1-async-io-and-jetty
[2] https://github.com/eclipse/jetty.project/issues/2911

Change-Id: Iac73fb25e67d40228a378a8e34103f1d28b72a76
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
2018-09-15 19:20:55 -05:00
..
.settings Merge branch 'stable-4.6' into stable-4.7 2017-11-22 23:07:01 +01:00
META-INF Prepare 4.7.4-SNAPSHOT builds 2018-09-09 08:24:16 +02:00
resources/org/eclipse/jgit/lfs/server/internal Move AtomicObjectOutputStream to lfs/internal 2016-09-20 10:58:20 +02:00
src/org/eclipse/jgit/lfs/server ObjectDownloadListener: Return from onWritePossible when data is written 2018-09-15 19:20:55 -05:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.fbprefs Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
.gitignore Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
.project Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
BUILD bazel: Add explicit targets for library dependencies 2017-03-19 18:51:03 -07:00
about.html Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
build.properties Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
plugin.properties Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
pom.xml Prepare 4.7.4-SNAPSHOT builds 2018-09-09 08:24:16 +02:00