cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6878] Protect against other exception during consuming left-over data
Date Fri, 22 Apr 2016 13:16:31 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 7f73b4b67 -> f95f6649f


[CXF-6878] Protect against other exception during consuming left-over data


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f95f6649
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f95f6649
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f95f6649

Branch: refs/heads/master
Commit: f95f6649f0667cec1eba9321aa4a055df6466edf
Parents: 7f73b4b
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Fri Apr 22 15:16:12 2016 +0200
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Fri Apr 22 15:16:20 2016 +0200

----------------------------------------------------------------------
 .../org/apache/cxf/transport/http/AbstractHTTPDestination.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f95f6649/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
index 722356c..577f262 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
@@ -599,7 +599,7 @@ public abstract class AbstractHTTPDestination
             //However, also don't want to consume indefinitely.   We'll limit to 16M.
             try {
                 IOUtils.consume(in, 16 * 1024 * 1024);
-            } catch (IOException ioe) {
+            } catch (Exception ioe) {
                 //ignore
             }
         }


Mime
View raw message