}
}
}
if (sockets.isEmpty())
throw new ConnectionFailedException("Timed out trying to create control socket");
Iterator it = sockets.iterator();
controlSocket = (Socket) it.next();
it.remove();
try
{
configureSocket(controlSocket);
}
catch (SocketException e2)
{
log.warn(this + " unable to configure control socket: " + e2.getLocalizedMessage());
}
try
{
controlOutputStream = controlSocket.getOutputStream();
}
catch (IOException e1)
{
throw new ConnectionFailedException("Unable to get control socket output stream");
}
log.debug("got control socket( " + listenerId + "): " + controlSocket);
if (pingFrequency > 0)
{