function http_wait($mh) {

    if (!empty($mh)) {
        $active = null;
        debug("http wait...");