Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 01c0f802b -> 35ad8ab21
[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/35ad8ab2 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/35ad8ab2 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/35ad8ab2 Branch: refs/heads/3.0.x-fixes Commit: 35ad8ab2158b7250643506ed0cd58b1de17c094e Parents: 01c0f80 Author: Sergey Beryozkin <[email protected]> Authored: Fri Nov 4 16:48:30 2016 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Fri Nov 4 16:52:33 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/35ad8ab2/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;
