You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Alexander Kunkel <al...@kunkelgmbh.de> on 2002/03/02 09:08:00 UTC
Re: [Bug 6727] New: - Clicking Stop in proxy doesn't
Here are my modifications of the nightly build 28.02.
The changes in the files are indepentent of the other file. So you can
decide
which file you take.
Hope that my following modification will not loose any HTTP request:
System.out.print("Creating Daemon Socket...");
MainSocket = new ServerSocket(daemonPort);
MainSocket.setSoTimeout(1000);
System.out.println(" port " + daemonPort + " OK");
System.out.println("Proxy up and running!");
while(running)
{
try {
// Listen on main socket
Socket ClientSocket = MainSocket.accept();
// Pass request to new proxy thread
Proxy thd = new Proxy(ClientSocket, cache,
config,target,cookieManager);
thd.start();
}
catch (java.io.InterruptedIOException ex) {
}
}
System.out.println("Proxy stoppedd!");
Alexander