You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/08/14 07:27:15 UTC
[tomcat] branch 7.0.x updated: Fix test observed to fail
consistently with NIO2 + Win + Java 8u212
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 773f215 Fix test observed to fail consistently with NIO2 + Win + Java 8u212
773f215 is described below
commit 773f215b4c9ebc4e64e50f5e2120db8e181fef2d
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Aug 14 08:24:53 2019 +0100
Fix test observed to fail consistently with NIO2 + Win + Java 8u212
---
test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
index 425ed8c..6a656c0 100644
--- a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
+++ b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
@@ -392,8 +392,12 @@ public class TestChunkedInputFilter extends TomcatBaseTest {
request += SimpleHttpClient.CRLF + chunks + "0" + SimpleHttpClient.CRLF
+ SimpleHttpClient.CRLF;
- TrailerClient client = new TrailerClient(tomcat.getConnector()
- .getLocalPort());
+ TrailerClient client = new TrailerClient(tomcat.getConnector().getLocalPort());
+ // Need to use the content length here as variations in Connector and
+ // JVM+OS behaviour mean that in some circumstances the client may see
+ // an IOException rather than the response body when the server closes
+ // the connection.
+ client.setUseContentLength(true);
client.setRequest(new String[] { request });
Exception processException = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org