HttpTest.java revision 3261
Socket s;
public void run() {
} catch (SocketTimeoutException e) { }
s.close();
boolean getRequest = false;
getRequest = true;
synchronized (counterLock) {
if (getRequest)
getCount++;
headCount++;
new BufferedOutputStream(
s.getOutputStream() ));
if (getRequest) {
} catch (Exception e) {
unexpected(e);
public void run() {
} catch (Exception e) {
e.printStackTrace();
return svr;
return svr;
public int port() {
public static class Counters {
public void reset() {
synchronized (counterLock) {
public int getCount() {
synchronized (counterLock) {
return getCount;
public int headCount() {
synchronized (counterLock) {
return headCount;
synchronized (counterLock) {
return cnts;
boolean failed = false;
failed = true;
failed = true;
e.nextElement();
failed = true;
if (failed) {