hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1034597 - /httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml
Date Fri, 12 Nov 2010 23:11:16 GMT
Author: olegk
Date: Fri Nov 12 23:11:16 2010
New Revision: 1034597

URL: http://svn.apache.org/viewvc?rev=1034597&view=rev
Log:
Moved to subsection

Modified:
    httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml

Modified: httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml?rev=1034597&r1=1034596&r2=1034597&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml (original)
+++ httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml Fri Nov 12 23:11:16 2010
@@ -422,24 +422,24 @@ SessionRequest sessionRequest = ioreacto
         });
 ]]></programlisting>
         </section>
-    </section>
-    <section>
-        <title>Queuing of I/O interest set operations</title>
-        <para>
-        Several older JRE implementations (primarily from IBM) provide what Java API documentation
-        refers to as a naive implementation of the <classname>java.nio.channels.SelectionKey
-        </classname> class. The problem with <classname>java.nio.channels.SelectionKey
-        </classname> in such JREs is that reading or writing of the I/O interest set
may block 
-        indefinitely if the I/O selector is in the process of executing a select operation.

-        HttpCore NIO can be configured to operate in a special mode wherein I/O interest
set 
-        operations are queued and executed by on the dispatch thread only when the I/O selector
is 
-        not engaged in a select operation.
-        </para>
-        <programlisting><![CDATA[
+        <section>
+            <title>Queuing of I/O interest set operations</title>
+            <para>
+            Several older JRE implementations (primarily from IBM) include what Java API

+            documentation refers to as a naive implementation of the <classname>
+            java.nio.channels.SelectionKey</classname> class. The problem with <classname>
+            java.nio.channels.SelectionKey</classname> in such JREs is that reading
or writing 
+            of the I/O interest set may block indefinitely if the I/O selector is in the
process 
+            of executing a select operation. HttpCore NIO can be configured to operate in
a special 
+            mode wherein I/O interest set operations are queued and executed by on the dispatch

+            thread only when the I/O selector is not engaged in a select operation.
+            </para>
+            <programlisting><![CDATA[
 HttpParams params = new BasicHttpParams();
 NIOReactorParams.setInterestOpsQueueing(params, true);
 ListeningIOReactor ioreactor = new DefaultListeningIOReactor(2, params);
 ]]></programlisting>
+        </section>
     </section>
     <section>
         <title>I/O reactor exception handling</title>



Mime
View raw message