diff options
author | Simone Bordet | 2015-12-08 21:10:27 +0000 |
---|---|---|
committer | Simone Bordet | 2015-12-08 21:10:27 +0000 |
commit | 1693dd135d70b892da51a6a810e1a7379a64067e (patch) | |
tree | 4bf57cff5f8d018aa8f2fcd098f8f7c430f26c0b /jetty-util/src | |
parent | 657b570716b80cc7d62adfb7a45ac7782de08572 (diff) | |
download | org.eclipse.jetty.project-1693dd135d70b892da51a6a810e1a7379a64067e.tar.gz org.eclipse.jetty.project-1693dd135d70b892da51a6a810e1a7379a64067e.tar.xz org.eclipse.jetty.project-1693dd135d70b892da51a6a810e1a7379a64067e.zip |
483857 - jetty-client onComplete isn't called in case of exception in GZIPContentDecoder.
Fixed by catching the exceptions and failing the callbacks.
Also using return values from HttpReceiver to compute what to
return to the parser.
Diffstat (limited to 'jetty-util/src')
-rw-r--r-- | jetty-util/src/main/java/org/eclipse/jetty/util/CompletableCallback.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/CompletableCallback.java b/jetty-util/src/main/java/org/eclipse/jetty/util/CompletableCallback.java index 1020bb6267..5c401341dc 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/CompletableCallback.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/CompletableCallback.java @@ -82,6 +82,10 @@ public abstract class CompletableCallback implements Callback } break; } + case FAILED: + { + return; + } default: { throw new IllegalStateException(current.toString()); @@ -108,6 +112,10 @@ public abstract class CompletableCallback implements Callback } break; } + case FAILED: + { + return; + } default: { throw new IllegalStateException(current.toString()); |