cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7116] Protecting against possible spurious retries in case of Jetty Continuations used to support AsyncResponse
Date Fri, 04 Nov 2016 16:48:51 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes d77f42b28 -> 7092c5d33


[CXF-7116] Protecting against possible spurious retries in case of Jetty Continuations used
to support AsyncResponse


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

Branch: refs/heads/3.1.x-fixes
Commit: 7092c5d331a500d7bfdb9be6918843c26f0cc5f6
Parents: d77f42b
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Nov 4 16:48:30 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Nov 4 16:48:30 2016 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7092c5d3/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
index 17c03a9..c25f770 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
@@ -259,7 +259,7 @@ public class AsyncResponseImpl implements AsyncResponse, ContinuationCallback
{
         }
     }
     
-    public boolean suspendContinuationIfNeeded() {
+    public synchronized boolean suspendContinuationIfNeeded() {
         if (!resumedByApplication && !cont.isPending() && !cont.isResumed())
{
             cont.suspend(AsyncResponse.NO_TIMEOUT);
             initialSuspend = false;


Mime
View raw message