Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2015-09-22 13:29:39 -0400
committerSimone Bordet2015-09-23 16:23:37 -0400
commit667606ac609a6ecc452a45b174423f88a0bdc671 (patch)
treea937a544c18c6584078355b52e5b0fd36c823c5b /jetty-servlets
parent3901fcbb6072451aab126663d1ea317f76400b5c (diff)
downloadorg.eclipse.jetty.project-667606ac609a6ecc452a45b174423f88a0bdc671.tar.gz
org.eclipse.jetty.project-667606ac609a6ecc452a45b174423f88a0bdc671.tar.xz
org.eclipse.jetty.project-667606ac609a6ecc452a45b174423f88a0bdc671.zip
Removed System.out calls.
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/test/java/org/eclipse/jetty/servlets/DefaultServletStarvationTest.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/DefaultServletStarvationTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/DefaultServletStarvationTest.java
index 6436276071..e090808579 100644
--- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/DefaultServletStarvationTest.java
+++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/DefaultServletStarvationTest.java
@@ -129,8 +129,8 @@ public class DefaultServletStarvationTest
output.flush();
Thread.sleep(100);
}
-
-
+
+
// Wait for a the servlet to block.
Assert.assertTrue(writePending.await(5, TimeUnit.SECONDS));
@@ -138,7 +138,7 @@ public class DefaultServletStarvationTest
_server.dumpStdErr();
Thread.sleep(1000);
-
+
ScheduledFuture<?> dumper = Executors.newSingleThreadScheduledExecutor().schedule(new Runnable()
{
@Override
@@ -147,17 +147,16 @@ public class DefaultServletStarvationTest
_server.dumpStdErr();
}
}, 10, TimeUnit.SECONDS);
-
+
long expected = Files.size(resourcePath);
byte[] buffer = new byte[48 * 1024];
for (Socket socket : sockets)
{
String socketString = socket.toString();
- System.out.println("Reading socket " + socketString+"...");
long total = 0;
InputStream input = socket.getInputStream();
-
+
// look for CRLFCRLF
StringBuilder header = new StringBuilder();
int state=0;
@@ -191,17 +190,15 @@ public class DefaultServletStarvationTest
else
state=0;
break;
- }
+ }
}
- System.out.println("Header socket " + socketString+"\n"+header.toString());
-
+
while (total<expected)
{
int read=input.read(buffer);
if (read<0)
break;
total+=read;
- System.out.printf("READ %d of %d/%d from %s%n",read,total,expected,socketString);
}
Assert.assertEquals(expected,total);

Back to the top