hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r613021 - /httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
Date Fri, 18 Jan 2008 00:25:00 GMT
Author: olegk
Date: Thu Jan 17 16:24:59 2008
New Revision: 613021

URL: http://svn.apache.org/viewvc?rev=613021&view=rev
Log:
Added missing selector wakeup calls

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

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java?rev=613021&r1=613020&r2=613021&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
Thu Jan 17 16:24:59 2008
@@ -180,6 +180,7 @@
         List<ListenerEndpoint> list = new ArrayList<ListenerEndpoint>();
         if (this.selector.isOpen()) {
             Set<SelectionKey> keys = this.selector.keys();
+            this.selector.wakeup();
             synchronized (keys) {
                 for (Iterator<SelectionKey> it = keys.iterator(); it.hasNext(); ) {
                     SelectionKey key = it.next();
@@ -198,6 +199,7 @@
     public void pause() throws IOException {
         if (this.selector.isOpen()) {
             Set<SelectionKey> keys = this.selector.keys();
+            this.selector.wakeup();
             synchronized (keys) {
                 for (Iterator<SelectionKey> it = keys.iterator(); it.hasNext(); ) {
                     SelectionKey key = it.next();



Mime
View raw message