synchronized (_lock) { _connection = _connectionCount++; }
    public ConnectionHandler(Socket sock, Plug plug, String base, ArrayList plugins) {        synchronized (_lock) {            _connection = _connectionCount++;        }        _sock = sock;        _plug = plug;        _base = base;        if (plugins == null) {            _plugins = new ProxyPlugin[0];        } else {            _plugins = new ProxyPlugin[plugins.size()];            for (int i=0; i<plugins.size(); i++) {                _plugins[i] = (ProxyPlugin) plugins.get(i);            }        }        try {            sock.setTcpNoDelay(true);            sock.setSoTimeout(30 * 1000);        } catch (SocketException se) {            System.err.println("Error setting socket parameters");        }        Thread thread = new Thread(this);        thread.setDaemon(true);        thread.start();    }