Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9FB3B18D30 for ; Thu, 8 Oct 2015 10:48:16 +0000 (UTC) Received: (qmail 12876 invoked by uid 500); 8 Oct 2015 10:48:16 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 12813 invoked by uid 500); 8 Oct 2015 10:48:16 -0000 Mailing-List: contact dev-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 dev@httpd.apache.org Received: (qmail 12803 invoked by uid 99); 8 Oct 2015 10:48:16 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 10:48:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 93B781A24C4 for ; Thu, 8 Oct 2015 10:48:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.79 X-Spam-Level: X-Spam-Status: No, score=0.79 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ijBqieZjbXlv for ; Thu, 8 Oct 2015 10:48:06 +0000 (UTC) Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 9872020F9F for ; Thu, 8 Oct 2015 10:48:05 +0000 (UTC) Received: from [192.168.1.42] (unknown [5.10.171.186]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id 2BEAF15A0096 for ; Thu, 8 Oct 2015 12:48:05 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: stop the press! From: Stefan Eissing In-Reply-To: Date: Thu, 8 Oct 2015 12:48:04 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@httpd.apache.org X-Mailer: Apple Mail (2.3094) Ah, good and useful hint! Currently working on a better patch and = backport that myself then. Thanks! > Am 08.10.2015 um 12:46 schrieb Jim Jagielski : >=20 > The mod_http2 stuff for 2.4.x is CTR, meaning that one does not > need to propose a backport in STATUS for it to be included; rather, > one simply patches 2.4 as required, while ensuring that one doesn't > break anything :) >=20 >> On Oct 8, 2015, at 6:06 AM, Stefan Eissing = wrote: >>=20 >> I need a tiny patch for mod_http2 that solves an empty response = problem with the latest nghttp2 libraries: >>=20 >> Jim, can we get that still in? Commited in trunk as r1707468. >>=20 >> //Stefan >>=20 >> Index: modules/http2/h2_util.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- modules/http2/h2_util.c (revision 1707467) >> +++ modules/http2/h2_util.c (revision 1707468) >> @@ -484,20 +484,39 @@ >>=20 >> int h2_util_has_eos(apr_bucket_brigade *bb, apr_size_t len) >> { >> - apr_bucket *b, *end; >> + apr_bucket *b; >>=20 >> - apr_status_t status =3D last_not_included(bb, len, 0, 0, &end); >> - if (status !=3D APR_SUCCESS) { >> - return status; >> + if (len =3D=3D 0) { >> + /* special case: this is only true, if there are only meta >> + * and an eos bucket in the brigade head. >> + */ >> + for (b =3D APR_BRIGADE_FIRST(bb); >> + b !=3D APR_BRIGADE_SENTINEL(bb); >> + b =3D APR_BUCKET_NEXT(b)) >> + { >> + if (!APR_BUCKET_IS_METADATA(b) && b->length !=3D 0) { >> + break; >> + } >> + else if (APR_BUCKET_IS_EOS(b)) { >> + return 1; >> + } >> + } >> } >> - =20 >> - for (b =3D APR_BRIGADE_FIRST(bb); >> - b !=3D APR_BRIGADE_SENTINEL(bb) && b !=3D end; >> - b =3D APR_BUCKET_NEXT(b)) >> - { >> - if (APR_BUCKET_IS_EOS(b)) { >> - return 1; >> + else { >> + apr_bucket *end; >> + apr_status_t status =3D last_not_included(bb, len, 0, 0, = &end); >> + if (status !=3D APR_SUCCESS) { >> + return status; >> } >> + =20 >> + for (b =3D APR_BRIGADE_FIRST(bb); >> + b !=3D APR_BRIGADE_SENTINEL(bb) && b !=3D end; >> + b =3D APR_BUCKET_NEXT(b)) >> + { >> + if (APR_BUCKET_IS_EOS(b)) { >> + return 1; >> + } >> + } >> } >> return 0; >> } >> Index: modules/http2/h2_version.h >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- modules/http2/h2_version.h (revision 1707467) >> +++ modules/http2/h2_version.h (revision 1707468) >> @@ -20,7 +20,7 @@ >> * @macro >> * Version number of the h2 module as c string >> */ >> -#define MOD_HTTP2_VERSION "0.9.9" >> +#define MOD_HTTP2_VERSION "1.0.0" >>=20 >> /** >> * @macro >> @@ -28,7 +28,7 @@ >> * release. This is a 24 bit number with 8 bits for major number, 8 = bits >> * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203. >> */ >> -#define MOD_HTTP2_VERSION_NUM 0x000909 >> +#define MOD_HTTP2_VERSION_NUM 0x010000 >>=20 >>=20 >> #endif /* mod_h2_h2_version_h */ >>=20 >=20