hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r612812 - in /httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor: DefaultConnectingIOReactor.java ListenerEndpointImpl.java
Date Thu, 17 Jan 2008 13:27:06 GMT
Author: olegk
Date: Thu Jan 17 05:26:12 2008
New Revision: 612812

URL: http://svn.apache.org/viewvc?rev=612812&view=rev
Log:
Minor cleanups

Modified:
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java?rev=612812&r1=612811&r2=612812&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java
Thu Jan 17 05:26:12 2008
@@ -78,9 +78,7 @@
     protected void cancelRequests() throws IOReactorException {
         SessionRequestImpl request;
         while ((request = this.requestQueue.poll()) != null) {
-            if (!request.isCompleted()) {
-                request.cancel();
-            }
+            request.cancel();
         }
     }
 

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java?rev=612812&r1=612811&r2=612812&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/ListenerEndpointImpl.java
Thu Jan 17 05:26:12 2008
@@ -62,6 +62,10 @@
         }
     }
     
+    public boolean isCompleted() {
+        return this.completed;
+    }
+    
     public IOException getException() {
         synchronized (this) {
             return this.exception;



Mime
View raw message