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 5489918D58 for ; Tue, 25 Aug 2015 10:43:53 +0000 (UTC) Received: (qmail 61282 invoked by uid 500); 25 Aug 2015 10:43:53 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 61204 invoked by uid 500); 25 Aug 2015 10:43:52 -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 61194 invoked by uid 99); 25 Aug 2015 10:43:52 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 10:43:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5A932182348 for ; Tue, 25 Aug 2015 10:43:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4XT4698U7nRl for ; Tue, 25 Aug 2015 10:43:44 +0000 (UTC) Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 32CBF20865 for ; Tue, 25 Aug 2015 10:43:44 +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 89BD015A06A6 for ; Tue, 25 Aug 2015 12:43:41 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: protocols and mod_h2 consolidation From: Stefan Eissing In-Reply-To: <55DBEB00.9080106@gknw.net> Date: Tue, 25 Aug 2015 12:43:40 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <8473DADF-04ED-4B48-A4F0-3FE34713674C@greenbytes.de> References: <15D90C4A-6D6C-48B7-8A56-DF46E4B07370@greenbytes.de> <55DBEB00.9080106@gknw.net> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.2104) Gregg, I just checked in changes that should fix the warnings you mentioned. = Thanks for reviewing this. As to the SERVER_PROTOCOL, I have no idea yet = what may cause this. //Stefan > Am 25.08.2015 um 06:11 schrieb Gregg Smith : >=20 > Hi, >=20 > On 8/24/2015 9:29 AM, Stefan Eissing wrote: >=20 >> I hope this works for everyone. The next weeks might be a good time = to think about it and propose any changes and correct my mistakes. >=20 > There are two things that go bump on my lowest non-eol version of = MSVC. > h2_worker.c > .\h2_worker.c(113) : error C2440: 'function' : cannot convert from = 'void *(__cdecl *)(apr_thread_t *,void *)' to 'apr_thread_start_t' > .\h2_worker.c(113) : warning C4022: 'apr_thread_create' : pointer = mismatch for actual parameter 3 >=20 > Casting execute to apr_thread_start_t (what apr_thread_create expects) = seems to quiet the compiler and FireFox seems to work with it. >=20 > h2_session.c > .\h2_session.c(1079) : error C2440: 'type cast' : cannot convert from = 'int' to 'nghttp2_data_source' > .\h2_session.c(1081) : warning C4047: 'initializing' : 'int' differs = in levels of indirection from 'nghttp2_data_source_read_callback' >=20 > This cast to a union type, this MSVC version's docs on Unions has a = note in the comments mentioning; >>=20 >> We recommend that you do not use a union to cast data from one data = type to another because union members occupy the same address in memory. >>=20 >> There is no data-conversion support for unions. The results of = interchanging writes and reads between union members of different types = are unpredictable and depend on a variety of reasons. >>=20 >=20 > They are evidently enforcing this. I just removed the cast and it = builds and Firefox seems to work. >=20 > Other nits of interest or not; > h2_stream_set.c > .\h2_stream_set.c(139) : warning C4028: formal parameter 2 different = from declaration >=20 > The function is prototyped as: h2_stream_set_match_fn *match > but in h2_stream_set.c it is: h2_stream_set_match_fn match >=20 > I get 2 different results for the $ENV{'SERVER_PROTOCOL'} in my perl = script depending on the machine. My server gives me "HTTP/1.1" and = running locally on my build machine I get "INCLUDED." Firefox says it is = HTTP/2.0 200 OK so both results in this $ENV seem incorrect. I'm not = sure why the difference as mod_h2 is configured same on both. >=20 > Regards, > Gregg >=20 >=20 >=20 >=20 >=20 bytes GmbH Hafenweg 16, 48155 M=C3=BCnster, Germany Phone: +49 251 2807760. Amtsgericht M=C3=BCnster: HRB5782