hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r453553 - /jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java
Date Fri, 06 Oct 2006 11:19:31 GMT
Author: olegk
Date: Fri Oct  6 04:19:31 2006
New Revision: 453553

URL: http://svn.apache.org/viewvc?view=rev&rev=453553
Log:
Bug fix

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java?view=diff&rev=453553&r1=453552&r2=453553
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/SessionRequestImpl.java
Fri Oct  6 04:19:31 2006
@@ -153,10 +153,10 @@
         synchronized (this) {
             this.callback = callback;
             if (this.completed) {
-                if (this.session != null) {
+                if (this.exception != null) {
+                    callback.failed(this);
+                } else if (this.session != null) {
                     callback.completed(this);
-                } else {
-                    callback.timeout(this);
                 }
             }
         }



Mime
View raw message