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:18:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes b12e82fc4 -> 1f4fc56a9


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

Branch: refs/heads/3.0.x-fixes
Commit: 1f4fc56a9272bdce356890ab905259630e7fe36f
Parents: b12e82f
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:52 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/1f4fc56a/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 76193fb..c8ef130 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