Merge branch 'stable-5.0' into stable-5.1
* stable-5.0: ObjectDownloadListener#onWritePossible: Add comment on return statement Change-Id: Ie7cb0c8a9775626cf2a2daae04b2d1f73a6c5af7 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
commit
41b1a71cf3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue