cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1414139 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
Date Tue, 27 Nov 2012 12:07:45 GMT
Author: sergeyb
Date: Tue Nov 27 12:07:44 2012
New Revision: 1414139

URL: http://svn.apache.org/viewvc?rev=1414139&view=rev
Log:
[CXF-4653] Updating Servlet3Continuation to handle the exception reported by some containers
when startAsync is called more than once, patch from Richard Opalka applied

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java?rev=1414139&r1=1414138&r2=1414139&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
Tue Nov 27 12:07:44 2012
@@ -79,7 +79,13 @@ public class Servlet3ContinuationProvide
         }
         
         void startAsyncAgain() {
-            context = req.startAsync();
+            
+            AsyncContext old = context;
+            try {
+                context = req.startAsync();
+            } catch (IllegalStateException ex) { 
+                context = old;
+            }
             context.addListener(this);
         }
         



Mime
View raw message