httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject clear_connection in mod_proxy
Date Thu, 29 Jan 1998 22:41:49 GMT
I don't understand.

/* Clear all connection-based headers from the incoming headers table */
static void clear_connection (table *headers)
{
    char *name;
    char *next = table_get(headers, "Connection");

    if (!next) return;

    while (*next) {
        name = next;
        while (*next && !isspace(*next) && (*next != ',')) ++next;
        while (*next && (isspace(*next) || (*next == ','))) {
            *next = '\0';
            ++next;
        }
        table_unset(headers, name);
    }
    table_unset(headers, "Connection");
}


Why is it doing that?  Is this an attempt to work with pre-1.1 keepalives
that use a Keep-Alive header in addition?  Why not just explicitly key on
that?

Roy?  You wrote it...


Mime
View raw message