Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B82751950D for ; Wed, 20 Apr 2016 11:39:33 +0000 (UTC) Received: (qmail 27834 invoked by uid 500); 20 Apr 2016 11:39:33 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 27758 invoked by uid 500); 20 Apr 2016 11:39:33 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 27749 invoked by uid 99); 20 Apr 2016 11:39:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 11:39:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D5CC5C0845 for ; Wed, 20 Apr 2016 11:39:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JN40IybjnsBg for ; Wed, 20 Apr 2016 11:39:31 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 5312C5F473 for ; Wed, 20 Apr 2016 11:39:31 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A446E0230 for ; Wed, 20 Apr 2016 11:39:30 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 78A883A006A for ; Wed, 20 Apr 2016 11:39:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1740119 - in /httpd/httpd/trunk: CHANGES server/protocol.c Date: Wed, 20 Apr 2016 11:39:30 -0000 To: cvs@httpd.apache.org From: icing@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160420113930.78A883A006A@svn01-us-west.apache.org> Author: icing Date: Wed Apr 20 11:39:30 2016 New Revision: 1740119 URL: http://svn.apache.org/viewvc?rev=1740119&view=rev Log: fixing h2 supress to inhibit other annnouncements in upgrade: header Modified: httpd/httpd/trunk/CHANGES httpd/httpd/trunk/server/protocol.c Modified: httpd/httpd/trunk/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1740119&r1=1740118&r2=1740119&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Wed Apr 20 11:39:30 2016 @@ -1,16 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 - *) mod_http2: r->protocol changed to "HTTP/2.0" (was "HTTP/2") as this will - give expected syntax in CGI's SERVER_PROTOCOL is more compatible with - existing major/minor handling. Fixes PR 59313. - *) core: explicitly exclude 'h2' from protocols announced via an Upgrade: header as commanded by http-wg. - *) mod_http2: disabling mmap for file buckets transport due to segmenation - faults when files change on the fly. - *) mod_http2: new "bucket beam" technology to transport buckets across threads without buffer copy. Delaying response start until flush or enough body data has been accumulated. [Stefan Eissing] Modified: httpd/httpd/trunk/server/protocol.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1740119&r1=1740118&r2=1740119&view=diff ============================================================================== --- httpd/httpd/trunk/server/protocol.c (original) +++ httpd/httpd/trunk/server/protocol.c Wed Apr 20 11:39:30 2016 @@ -2021,7 +2021,10 @@ AP_DECLARE(apr_status_t) ap_get_protocol const char *p = APR_ARRAY_IDX(conf->protocols, i, char *); /* special quirk for HTTP/2 which does not allow 'h2' to * be part of an Upgrade: header */ - if (strcmp(existing, p) && strcmp("h2", p)) { + if (!strcmp("h2", p)) { + continue; + } + else if (strcmp(existing, p)) { /* not the one we have and possible, add in this order */ APR_ARRAY_PUSH(upgrades, const char*) = p; }