Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1025 2009/03/20 14:38:17 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1026 2009/03/23 12:51:13 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:2729:    foreach(required_hosts, string required_host)    {    if( m[ required_host ] && m[ required_host ][ port ] )    {    if (!required_host) opened_ipv4_any_port = 1;       m[required_host][port]->ref(url, urls[url]);       urls[url]->port = m[required_host][port];    urls[ourl]->port = m[required_host][port]; +  if (urls[ourl]->ports) { +  urls[ourl]->ports += ({ m[required_host][port] }); +  } else { +  urls[ourl]->ports = ({ m[required_host][port] }); +  }    continue; /* No need to open a new port */    }       if( !m[ required_host ] )    m[ required_host ] = ([ ]);       if (mixed err = catch {    m[ required_host ][ port ] =    prot( port, required_host,    // Don't complain if binding IPv6 ANY fails with
Roxen.git/server/base_server/roxen.pike:2787:       if (prot_obj->bound == -1) {    // Got EADDRINUSE for the IPv6 case - see above. Just forget    // about this one.    m_delete (m[required_host], port);    continue;    }       urls[ url ]->port = prot_obj;    urls[ ourl ]->port = prot_obj; +  if (urls[ourl]->ports) { +  urls[ourl]->ports += ({ prot_obj }); +  } else { +  urls[ourl]->ports = ({ prot_obj }); +  }    prot_obj->ref(url, urls[url]);       if( !prot_obj->bound )    failures++;    }    if (failures == sizeof(required_hosts))    {    report_error(LOC_M(23, "Cannot register URL %s!")+"\n", url);    return 0;    }