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 2021/05/26 09:33:49 UTC
[tomcat] 02/02: Increase data written to ensure required (for the
test) IOE is triggered
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 9c7246cb028daec152d71d4ff11ac547f9db3527
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 26 10:32:52 2021 +0100
Increase data written to ensure required (for the test) IOE is triggered
---
test/org/apache/catalina/core/TestAsyncContextStateChanges.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/core/TestAsyncContextStateChanges.java b/test/org/apache/catalina/core/TestAsyncContextStateChanges.java
index 3ef81a3..b7743b0 100644
--- a/test/org/apache/catalina/core/TestAsyncContextStateChanges.java
+++ b/test/org/apache/catalina/core/TestAsyncContextStateChanges.java
@@ -232,7 +232,9 @@ public class TestAsyncContextStateChanges extends TomcatBaseTest {
resp.setCharacterEncoding("UTF-8");
OutputStream os = resp.getOutputStream();
resp.setContentType("text/plain");
- for (int i = 0; i < 16; i++) {
+ // Needs to be large enough to fill buffers and trigger
+ // the IOE for the test to work as expected.
+ for (int i = 0; i < 64; i++) {
os.write(TestCoyoteAdapter.TEXT_8K.getBytes(StandardCharsets.UTF_8));
}
} catch (IOException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org