This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 8d6420831f Fix test failure on Windows
8d6420831f is described below

commit 8d6420831f071e5ceefedbd8f692764b3836fbeb
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Apr 26 17:04:07 2024 +0100

    Fix test failure on Windows
---
 test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java 
b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
index 9a44b02b08..b264092ed0 100644
--- a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
+++ b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
@@ -697,7 +697,11 @@ public class TestChunkedInputFilter extends TomcatBaseTest 
{
 
         client.setRequest(request);
         client.connect();
-        client.processRequest();
+        try {
+            client.processRequest();
+        } catch (IOException ioe) {
+            // Ignore - Triggered by connection being dropped after error
+        }
         // NIO2 may (will?) return null here
         String responseLine = client.getResponseLine();
         if (responseLine == null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to