public boolean doTimeoutCheck(boolean forceKill) {
		if (mySocket.isClosed()) {
			// the connecion was already closed and should be removed by the HTTPServer instance.
			return true;
		}
		else {
			long nowtime = System.currentTimeMillis();
			int startTimeout = hr != null ? (hr.isServercmd() ? 1800000 : 180000) : 30000;

			if (forceKill || (sessionStartTime > 0 && sessionStartTime < nowtime - startTimeout) || (lastPacketSend > 0 && lastPacketSend < nowtime - 30000)) {
				// DIE DIE DIE
				// Out.info(this + " The connection has exceeded its time limits: timing out.");
				try {
					mySocket.close();
				} catch (Exception e) {
					Out.debug(e.toString());
				}
			}
		}

		return false;
	}