if (lSessionTimeout > 0) {
lClientSocket.setSoTimeout(lSessionTimeout);
}
// create connector and pass header
// log.debug("Instantiating connector...");
WebSocketConnector lConnector = new TCPConnector(mEngine, lClientSocket);
// log.debug("Setting header to engine...");
lConnector.setHeader(lHeader);
// log.debug("Adding connector to engine...");
getConnectors().put(lConnector.getId(), lConnector);
if (mLog.isDebugEnabled()) {
mLog.debug("Starting connector...");
}
lConnector.startConnector();
} else {
// if header could not be parsed properly
// immediately disconnect the client.
lClientSocket.close();
}