public final static void releaseConnection (WebConnection wc) {
        if (!wc.keepalive || keepalivetime<=0)
        {
            try
            {
                wc.close();
            }
            catch  (IOException e) {}
              return;
        }
        String a = wc.ia.getHostAddress () + ":" + wc.port;
        wc.setReleased ();
        if(trace_keepalive)
        {
        	System.out.println("[TRACE "+Thread.currentThread().getName()+"] * Puting "+a+" to pool.");
        }
        synchronized (activeConnections) {
            ArrayList <WebConnection> pool = activeConnections.get (a);
            if (pool == null) {
                pool = new ArrayList <WebConnection> ();
                activeConnections.put (a, pool);
            }
            synchronized(pool) {
            	pool.add (wc);
            }
        }
    }