You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/02/06 19:17:17 UTC

httpcomponents-core git commit: [HTTPCORE-510] Avoid an ArithmeticException in AbstractMultiworkerIOReactor by failing earlier by checking ioThreadCount in IOReactorConfig constructor.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/4.4.x 7d47ad0d7 -> 1faf0976f


[HTTPCORE-510] Avoid an ArithmeticException in
AbstractMultiworkerIOReactor by failing earlier by checking
ioThreadCount in IOReactorConfig constructor.

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

Branch: refs/heads/4.4.x
Commit: 1faf0976f723767066293d633ecc83a56358f321
Parents: 7d47ad0
Author: Gary Gregory <ga...@gmail.com>
Authored: Tue Feb 6 12:17:14 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Tue Feb 6 12:17:14 2018 -0700

----------------------------------------------------------------------
 RELEASE_NOTES.txt                                       | 12 ++++++++++++
 .../apache/http/impl/nio/reactor/IOReactorConfig.java   |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1faf0976/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index e591ca9..d5118d5 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,3 +1,15 @@
+Release 4.4.10
+-------------------
+
+This is a maintenance release that fixes a number of issues discovered since 4.4.9.
+
+Changelog
+-------------------
+
+* HTTPCORE-510: Avoid an ArithmeticException in AbstractMultiworkerIOReactor by failing earlier by checking ioThreadCount in IOReactorConfig constructor.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
+  
 Release 4.4.9
 -------------------
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1faf0976/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOReactorConfig.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOReactorConfig.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOReactorConfig.java
index 4096593..a4d7d3e 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOReactorConfig.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOReactorConfig.java
@@ -91,7 +91,7 @@ public final class IOReactorConfig implements Cloneable {
         this.selectInterval = selectInterval;
         this.shutdownGracePeriod = shutdownGracePeriod;
         this.interestOpQueued = interestOpQueued;
-        this.ioThreadCount = ioThreadCount;
+        this.ioThreadCount = Args.positive(ioThreadCount, "ioThreadCount");
         this.soTimeout = soTimeout;
         this.soReuseAddress = soReuseAddress;
         this.soLinger = soLinger;