This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 2c35215531 Ignore Java 24 client IOE occurring on file delete with
sendfile
2c35215531 is described below
commit 2c35215531746981b828236d12053246bcd7abb0
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 ead45b43da..098ff0aa53 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]