This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ba169f5b19 Ignore Java 24 client IOE occurring on file delete with
sendfile
ba169f5b19 is described below
commit ba169f5b19237965ab188dc871e07088be4819c1
Author: remm <[email protected]>
AuthorDate: Mon Oct 14 15:34:30 2024 +0200
Ignore Java 24 client IOE occurring on file delete with sendfile
---
test/org/apache/catalina/connector/TestSendFile.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/catalina/connector/TestSendFile.java
b/test/org/apache/catalina/connector/TestSendFile.java
index 45a7da9e8a..88e3f8cf32 100644
--- a/test/org/apache/catalina/connector/TestSendFile.java
+++ b/test/org/apache/catalina/connector/TestSendFile.java
@@ -163,8 +163,13 @@ public class TestSendFile extends TomcatBaseTest {
tomcat.start();
ByteChunk bc = new ByteChunk();
- getUrl("http://localhost:" + getPort() + "/test/?" +
Globals.SENDFILE_SUPPORTED_ATTR
- + "=true", bc, null);
+ try {
+ getUrl("http://localhost:" + getPort() + "/test/?" +
Globals.SENDFILE_SUPPORTED_ATTR
+ + "=true", bc, null);
+ } catch (IOException e) {
+ // Ignore possible IOE due to file delete on the server
+ System.out.println("Ignored: " + e.getMessage());
+ }
CountDownLatch latch = new CountDownLatch(2);
List<Throwable> throwables = new CopyOnWriteArrayList<>();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]