This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 494fcaf Fix test observed to fail consistently with NIO2 + Win + Java 8u212 494fcaf is described below commit 494fcafe83d0082c03e990a56146a7a2211815c2 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 d7cb18f..503e1cd 100644 --- a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java +++ b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java @@ -391,8 +391,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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org