hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/5] httpcomponents-core git commit: Changed non-blocking test client and server shutdown type from immediate to graceful (this is expected to fix intermittent test failures due to premature connection termination)
Date Sun, 18 Jun 2017 19:17:24 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/master e5f75c9cc -> 876fa8636


Changed non-blocking test client and server shutdown type from immediate to graceful (this
is expected to fix intermittent test failures due to premature connection termination)


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

Branch: refs/heads/master
Commit: 2912b5a2c0cc191bd34630cffbd86056da549c75
Parents: e5f75c9
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Sat Jun 17 16:19:57 2017 +0200
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Sun Jun 18 18:13:25 2017 +0200

----------------------------------------------------------------------
 .../apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java | 4 ++--
 .../hc/core5/testing/nio/Http2ProtocolNegotiationTest.java       | 4 ++--
 .../apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/2912b5a2/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java
----------------------------------------------------------------------
diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java
b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java
index f0c7205..86bf875 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1ServerAndRequesterTest.java
@@ -140,7 +140,7 @@ public class Http1ServerAndRequesterTest {
         protected void after() {
             if (server != null) {
                 try {
-                    server.shutdown(ShutdownType.IMMEDIATE);
+                    server.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = server.getExceptionLog();
                     server = null;
                     if (!exceptionLog.isEmpty()) {
@@ -175,7 +175,7 @@ public class Http1ServerAndRequesterTest {
         protected void after() {
             if (requester != null) {
                 try {
-                    requester.shutdown(ShutdownType.IMMEDIATE);
+                    requester.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = requester.getExceptionLog();
                     requester = null;
                     if (!exceptionLog.isEmpty()) {

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/2912b5a2/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ProtocolNegotiationTest.java
----------------------------------------------------------------------
diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ProtocolNegotiationTest.java
b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ProtocolNegotiationTest.java
index 950490e..a549aa6 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ProtocolNegotiationTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ProtocolNegotiationTest.java
@@ -112,7 +112,7 @@ public class Http2ProtocolNegotiationTest {
         protected void after() {
             if (server != null) {
                 try {
-                    server.shutdown(ShutdownType.IMMEDIATE);
+                    server.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = server.getExceptionLog();
                     server = null;
                     if (!exceptionLog.isEmpty()) {
@@ -149,7 +149,7 @@ public class Http2ProtocolNegotiationTest {
         protected void after() {
             if (requester != null) {
                 try {
-                    requester.shutdown(ShutdownType.IMMEDIATE);
+                    requester.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = requester.getExceptionLog();
                     requester = null;
                     if (!exceptionLog.isEmpty()) {

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/2912b5a2/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java
----------------------------------------------------------------------
diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java
b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java
index bfbceae..35a79a8 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http2ServerAndRequesterTest.java
@@ -115,7 +115,7 @@ public class Http2ServerAndRequesterTest {
         protected void after() {
             if (server != null) {
                 try {
-                    server.shutdown(ShutdownType.IMMEDIATE);
+                    server.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = server.getExceptionLog();
                     server = null;
                     if (!exceptionLog.isEmpty()) {
@@ -151,7 +151,7 @@ public class Http2ServerAndRequesterTest {
         protected void after() {
             if (requester != null) {
                 try {
-                    requester.shutdown(ShutdownType.IMMEDIATE);
+                    requester.shutdown(ShutdownType.GRACEFUL);
                     final List<ExceptionEvent> exceptionLog = requester.getExceptionLog();
                     requester = null;
                     if (!exceptionLog.isEmpty()) {


Mime
View raw message