357240 fixed client test

This commit is contained in:
Greg Wilkins 2011-09-29 00:02:06 +10:00
parent 1420253643
commit f73a6422f0
1 changed files with 8 additions and 2 deletions

View File

@ -397,11 +397,14 @@ public class HttpExchangeTest
int size =32;
ContentExchange httpExchange=new ContentExchange()
{
int total;
@Override
protected synchronized void onResponseStatus(Buffer version, int status, Buffer reason) throws IOException
{
if (verbose)
super.onResponseStatus(version,status,reason);
System.err.println("] "+version+" "+status+" "+reason);
super.onResponseStatus(version,status,reason);
}
@Override
@ -416,7 +419,10 @@ public class HttpExchangeTest
protected synchronized void onResponseContent(Buffer content) throws IOException
{
if (verbose)
System.err.println("] "+content.length());
{
total+=content.length();
System.err.println("] "+content.length()+" -> "+total);
}
super.onResponseContent(content);
}