hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1544962 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
Date Sun, 24 Nov 2013 12:33:28 GMT
Author: olegk
Date: Sun Nov 24 12:33:28 2013
New Revision: 1544962

URL: http://svn.apache.org/r1544962
Log:
Apply IOReactorConfig#getRcvBufSize() value to server sockets open by DefaultListeningIOReactor
Contributed by Andreas Veithen <veithen at apache.org>

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

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1544962&r1=1544961&r2=1544962&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Sun Nov 24 12:33:28 2013
@@ -1,6 +1,9 @@
 Changes since 4.3
 -------------------
 
+* Apply IOReactorConfig#getRcvBufSize() value to server sockets open by DefaultListeningIOReactor.
+  Contributed by Andreas Veithen <veithen at apache.org>
+
 * [HTTPCORE-357] Avoid DNS lookups in SSLIOSessions in server mode.
   Contributed by Isaac Cruz Ballesteros <icruzbal at gmail.com>
 

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java?rev=1544962&r1=1544961&r2=1544962&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/DefaultListeningIOReactor.java
Sun Nov 24 12:33:28 2013
@@ -233,6 +233,12 @@ public class DefaultListeningIOReactor e
             try {
                 final ServerSocket socket = serverChannel.socket();
                 socket.setReuseAddress(this.config.isSoReuseAddress());
+                if (this.config.getSoTimeout() > 0) {
+                    socket.setSoTimeout(this.config.getSoTimeout());
+                }
+                if (this.config.getRcvBufSize() > 0) {
+                    socket.setReceiveBufferSize(this.config.getRcvBufSize());
+                }
                 serverChannel.configureBlocking(false);
                 socket.bind(address);
             } catch (final IOException ex) {



Mime
View raw message