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:17:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes c0cd1f446 -> c4a261b1b


[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/c4a261b1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c4a261b1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c4a261b1

Branch: refs/heads/3.1.x-fixes
Commit: c4a261b1bede293964feaf490c96c334783c13d9
Parents: c0cd1f4
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:17:00 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/c4a261b1/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