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>
This commit is contained in:
David Pursehouse 2018-09-26 08:18:23 +09:00
commit 6b82c9ff7f
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ public void onWritePossible() throws IOException {
} 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;
}
}