hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r514480 - in /jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http: impl/nio/reactor/SessionRequestImpl.java nio/reactor/SessionRequestCallback.java
Date Sun, 04 Mar 2007 21:50:21 GMT
Author: olegk
Date: Sun Mar  4 13:50:20 2007
New Revision: 514480

URL: http://svn.apache.org/viewvc?view=rev&rev=514480
Log:
HTTPCORE-53: Added session request cancellation callback

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

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java?view=diff&rev=514480&r1=514479&r2=514480
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
Sun Mar  4 13:50:20 2007
@@ -187,6 +187,9 @@
         }
         this.completed = true;
         synchronized (this) {
+            if (this.callback != null) {
+                this.callback.cancelled(this);
+            }
             notifyAll();
         }
     }

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/reactor/SessionRequestCallback.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/reactor/SessionRequestCallback.java?view=diff&rev=514480&r1=514479&r2=514480
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/reactor/SessionRequestCallback.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/reactor/SessionRequestCallback.java
Sun Mar  4 13:50:20 2007
@@ -39,4 +39,6 @@
     
     void timeout(SessionRequest request);
 
+    void cancelled(SessionRequest request);
+    
 }



Mime
View raw message