hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] httpcomponents-core git commit: Default I/O reactors to allow null IOReactorConfig parameter
Date Sun, 22 Oct 2017 12:24:31 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 13834d92c -> 29d31f9f1


Default I/O reactors to allow null IOReactorConfig parameter


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/3a7e62c6
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/3a7e62c6
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/3a7e62c6

Branch: refs/heads/master
Commit: 3a7e62c6c468edad91664842abe51539e28f3654
Parents: 13834d9
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Sun Oct 22 14:05:48 2017 +0200
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Sun Oct 22 14:05:48 2017 +0200

----------------------------------------------------------------------
 .../org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java    | 2 +-
 .../org/apache/hc/core5/reactor/DefaultListeningIOReactor.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3a7e62c6/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
b/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
index 8fdb427..69741c2 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultConnectingIOReactor.java
@@ -82,7 +82,7 @@ public class DefaultConnectingIOReactor implements IOReactorService, ConnectionI
             final SingleCoreIOReactor dispatcher = new SingleCoreIOReactor(
                     auditLog,
                     eventHandlerFactory,
-                    ioReactorConfig,
+                    ioReactorConfig != null ? ioReactorConfig : IOReactorConfig.DEFAULT,
                     ioSessionDecorator,
                     sessionListener,
                     sessionShutdownCallback);

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3a7e62c6/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultListeningIOReactor.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultListeningIOReactor.java
b/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultListeningIOReactor.java
index e65a66c..9f6ee54 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultListeningIOReactor.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/DefaultListeningIOReactor.java
@@ -99,7 +99,7 @@ public class DefaultListeningIOReactor implements IOReactorService, ConnectionIn
             final SingleCoreIOReactor dispatcher = new SingleCoreIOReactor(
                     auditLog,
                     eventHandlerFactory,
-                    ioReactorConfig,
+                    ioReactorConfig != null ? ioReactorConfig : IOReactorConfig.DEFAULT,
                     ioSessionDecorator,
                     sessionListener,
                     sessionShutdownCallback);


Mime
View raw message