try
{
ObjectInputStream in = new ObjectInputStream(socket.getInputStream());
PrintStream out = new PrintStream(socket.getOutputStream());
StressAction action = new StressAction((Session) in.readObject(), out);
action.start();
while (action.isAlive())
{
try
{
if (in.readInt() == 1)
{
action.stopAction();
break;
}
}
catch (Exception e)
{