This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new d09f468 Add some debug to show buffering differences
d09f468 is described below
commit d09f46896da11baba121628a67d3afe8a4bc0c8f
Author: remm <[email protected]>
AuthorDate: Tue Nov 12 16:13:43 2019 +0100
Add some debug to show buffering differences
---
test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
index 042b6f3..7f16f26 100644
--- a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
+++ b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
@@ -192,11 +192,15 @@ public class TestNonBlockingAPI extends TomcatBaseTest {
int readSinceLastPause = 0;
while (read != -1) {
read = is.read(buffer);
+ if (readSinceLastPause == 0) {
+ log.info("Reading data");
+ }
if (read > 0) {
result.append(buffer, 0, read);
}
readSinceLastPause += read;
if (readSinceLastPause > WRITE_SIZE / 16) {
+ log.info("Read " + readSinceLastPause + " bytes, pause 500ms");
readSinceLastPause = 0;
Thread.sleep(500);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]