cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1423129 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Date Mon, 17 Dec 2012 20:38:33 GMT
Author: dkulp
Date: Mon Dec 17 20:38:32 2012
New Revision: 1423129

URL: http://svn.apache.org/viewvc?rev=1423129&view=rev
Log:
If the responsecode has already arrived, don't wait.

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java?rev=1423129&r1=1423128&r2=1423129&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Mon Dec 17 20:38:32 2012
@@ -528,10 +528,14 @@ public abstract class AbstractClient imp
     
     protected void waitForResponseCode(Exchange exchange) {
         synchronized (exchange) {
-            try {
-                exchange.wait(cfg.getSynchronousTimeout());
-            } catch (InterruptedException ex) {
-                // ignore
+            if (getResponseCode(exchange) == null) { 
+                try {
+                    exchange.wait(cfg.getSynchronousTimeout());
+                } catch (InterruptedException ex) {
+                    // ignore
+                }
+            } else {
+                return;
             }
         }
         



Mime
View raw message