You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/09/28 21:21:37 UTC

[1/3] httpcomponents-core git commit: Make responseFactory available to subclasses. [Forced Update!]

Repository: httpcomponents-core
Updated Branches:
  refs/heads/4.4.x 27b4bcec8 -> 60730445d (forced update)


Make responseFactory available to subclasses.


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

Branch: refs/heads/4.4.x
Commit: 2491e66d54884c5bc57c26ef88d7d65f7e88c7a7
Parents: 64eed73
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Sep 27 14:48:43 2017 -0600
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu Sep 28 23:12:30 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/http/nio/protocol/HttpAsyncService.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/2491e66d/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
index c9a461d..b79c1c6 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
@@ -1087,4 +1087,13 @@ public class HttpAsyncService implements NHttpServerEventHandler {
 
     }
 
+    /**
+     * Gets the HttpResponseFactory for this service.
+     *
+     * @since 4.4.8
+     */
+    protected HttpResponseFactory getResponseFactory() {
+      return responseFactory;
+    }
+
 }


[2/3] httpcomponents-core git commit: Make org.apache.http.nio.protocol.ErrorResponseProducer public.

Posted by ol...@apache.org.
Make org.apache.http.nio.protocol.ErrorResponseProducer public.


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

Branch: refs/heads/4.4.x
Commit: b7e9714308dadb2e414783bed58db2e6271d07cb
Parents: 2491e66
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Sep 28 10:43:51 2017 -0600
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu Sep 28 23:16:56 2017 +0200

----------------------------------------------------------------------
 .../org/apache/http/nio/protocol/ErrorResponseProducer.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/b7e97143/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
index b192277..6a2df67 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
@@ -38,14 +38,19 @@ import org.apache.http.nio.entity.HttpAsyncContentProducer;
 import org.apache.http.protocol.HTTP;
 import org.apache.http.protocol.HttpContext;
 
-class ErrorResponseProducer implements HttpAsyncResponseProducer {
+/**
+ * This class changed from package private to public in version 4.4.8.
+ *
+ * @since 4.4.8
+ */
+public class ErrorResponseProducer implements HttpAsyncResponseProducer {
 
     private final HttpResponse response;
     private final HttpEntity entity;
     private final HttpAsyncContentProducer contentProducer;
     private final boolean keepAlive;
 
-    ErrorResponseProducer(
+    public ErrorResponseProducer(
             final HttpResponse response,
             final HttpEntity entity,
             final boolean keepAlive) {


[3/3] httpcomponents-core git commit: Updated release notes for Release 4.4.8.

Posted by ol...@apache.org.
Updated release notes for Release 4.4.8.


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

Branch: refs/heads/4.4.x
Commit: 60730445dcc9756af6dfa8dba01160c514a9cad8
Parents: b7e9714
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Sep 28 12:53:08 2017 -0600
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu Sep 28 23:20:48 2017 +0200

----------------------------------------------------------------------
 RELEASE_NOTES.txt | 39 ++++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/60730445/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 189a193..eb5f71f 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,3 +1,24 @@
+Release 4.4.8
+-------------------
+
+This is a maintenance release that fixes a number of issues discovered since 4.4.6.
+
+Changelog
+-------------------
+
+* HTTPCORE-492: Make org.apache.http.nio.protocol.ErrorResponseProducer public.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
+* HTTPCORE-493: Make org.apache.http.nio.protocol.HttpAsyncService.responseFactory available to subclasses.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
+* HTTPCORE-491 Make BasicAsyncRequest|ResponseConsumer more paranoid
+  Contributed by Michael Heemskerk <mh...@atlassian.com>
+
+* HTTPCORE-490: session requests do not get cancelled correctly if the associated HTTP response futures get cancelled
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
+
 Release 4.4.7
 -------------------
 
@@ -8,30 +29,30 @@ Changelog
 
 * HTTPCORE-487: org.apache.http.nio.reactor.ssl.SSLIOSession and SSLNHttpClientConnectionFactory
   do not always use the HTTP host setting.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-485: Reduce memory footprint of non-blocking SSL sessions by 25%.
   Contributed by Todor Bonchev <31352118+TodorBonchev at users.noreply.github.com>
 
 * HTTPCORE-483: back-ported SSL session termination bug fix from 5.x.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * Fixed a race condition in message exchange state synchronization during an expect-continue handshake.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-481: async request executor to treat non-error (status >= 200 and status < 400)
   out of sequence responses as valid.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-472: Fixed problem with blocking message parsers incorrectly throwing "Maximum line
   length limit exceeded" exception in some corner cases.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-463: Fixed incorrect use of connect timeout setting in AbstractNIOConnPool.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-455: fatal Error in an individual worker thread does not cause proper I/O reactor shutdown.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-487: org.apache.http.nio.reactor.ssl.SSLIOSession and SSLNHttpClientConnectionFactory
   do not always use the HTTP host setting.
@@ -42,11 +63,11 @@ Changelog
 
 * HTTPCORE-456: BasicFuture fails to honor Future interface contract by not throwing
   CancellationException when cancelled.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-455: fatal Error in an individual worker thread does not cause proper I/O reactor
   shutdown.
-  Conributed by Oleg Kalnichevski <olegk at apache.org>
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
 
 * HTTPCORE-460: Add factory methods to DefaultHttpClientIODispatch to handle a null SSLContext.
   Contributed by Gary Gregory <ggregory at apache.org>