hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [13/19] httpcomponents-core git commit: [HTTPCORE-464] org.apache.http.nio.protocol.HttpAsyncService does not always log exceptions.
Date Fri, 12 May 2017 08:04:37 GMT
[HTTPCORE-464] org.apache.http.nio.protocol.HttpAsyncService does not always log exceptions.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794222
13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/4.4.x
Commit: 36cc72f2d98a6867773345034be117e0ea49bbf4
Parents: 1d9dff9
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Sun May 7 16:45:59 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Fri May 12 09:51:07 2017 +0200

----------------------------------------------------------------------
 RELEASE_NOTES.txt                                                 | 3 +++
 .../main/java/org/apache/http/nio/protocol/HttpAsyncService.java  | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/36cc72f2/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index b29e546..21409ad 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -18,6 +18,9 @@ Changelog
 * HTTPCORE-462: Deprecate SSLContextBuilder.useProtocol(String) in favor a new method setProtocol(String).
   Contributed by Gary Gregory <ggregory at apache.org>
 
+* HTTPCORE-464: org.apache.http.nio.protocol.HttpAsyncService does not always log exceptions.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
 
 Release 4.4.6
 -------------------

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/36cc72f2/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 d8a783d..f941399 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
@@ -277,10 +277,10 @@ public class HttpAsyncService implements NHttpServerEventHandler {
     @Override
     public void exception(
             final NHttpServerConnection conn, final Exception cause) {
+        log(cause);
         final State state = getState(conn);
         if (state == null) {
             shutdownConnection(conn);
-            log(cause);
             return;
         }
         state.setTerminated();


Mime
View raw message