You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stefan Eissing <st...@eissing.org> on 2015/09/25 10:58:51 UTC

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Me not fully understand. Why at all and why only there? (curiousity)

> Am 25.09.2015 um 10:54 schrieb rpluem@apache.org:
> 
> Author: rpluem
> Date: Fri Sep 25 08:54:38 2015
> New Revision: 1705257
> 
> URL: http://svn.apache.org/viewvc?rev=1705257&view=rev
> Log:
> * Disable the http2 modules if nghttp2 is not present
> 
> Modified:
>    httpd/httpd/trunk/modules/http2/config.m4
> 
> Modified: httpd/httpd/trunk/modules/http2/config.m4
> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/config.m4?rev=1705257&r1=1705256&r2=1705257&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/http2/config.m4 (original)
> +++ httpd/httpd/trunk/modules/http2/config.m4 Fri Sep 25 08:54:38 2015
> @@ -181,7 +181,7 @@ is usually linked shared and requires lo
>            APR_ADDTO(MOD_H2_LDADD, [-export-symbols-regex h2_module])
>         fi
>     else
> -        enable_h2=no
> +        enable_http2=no
>     fi
> ])
> APACHE_MODULE(h2, [HTTP/2 support (Deprecated. Use --enable-http2)], $h2_objs, , most, [
> 
> 


Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Eric Covener <co...@gmail.com>.
On Fri, Sep 25, 2015 at 9:14 AM, Yann Ylavic <yl...@gmail.com> wrote:
> What should be the name of the module? http2_module/mod_http2 or as
> currently h2_module/mod_h2?

I'm personally fine with status quo of h2.

Re: AW: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Gregg Smith <gl...@gknw.net>.
On 9/25/2015 8:56 AM, Plüm, Rüdiger, Vodafone Group wrote:
>
>> -----Ursprüngliche Nachricht-----
>> Von: Plüm, Rüdiger, Vodafone Group
>> Gesendet: Freitag, 25. September 2015 17:51
>> An: dev@httpd.apache.org
>> Betreff: AW: mod_h2 CTR (Was: Re: svn commit: r1705257 -
>> /httpd/httpd/trunk/modules/http2/config.m4)
>>
>>
>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Jim Jagielski [mailto:jim@jaguNET.com]
>>> Gesendet: Freitag, 25. September 2015 17:46
>>> An: dev@httpd.apache.org
>>> Betreff: Re: mod_h2 CTR (Was: Re: svn commit: r1705257 -
>>> /httpd/httpd/trunk/modules/http2/config.m4)
>>>
>>> In any case, let's not bike-shed on what we call it, or whatever...
>>>
>>> Let's focus on deciding if we are cool with it being CTR once it's
>>> folded into 2.4.x and "handling" it as we do mod_lua.
>> +1 on CTR for mod_h2 in 2.4.x
>>
> Just to clarify: CTR only on the code in modules/http2. All changes / adjustments that might be needed to mod_ssl should stay RTC.
+1 as detailed by Rüdiger.
+1 to experimental and same note as mod_lua in docs.






Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Jim Jagielski <ji...@jaguNET.com>.
I don't think this needs a formal vote, but I'll give it the
weekend, for people to chime in...


Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Eric Covener <co...@gmail.com>.
On Fri, Sep 25, 2015 at 3:53 PM, Greg Stein <gs...@gmail.com> wrote:
> IMO, call it experimental, and detail what that means in the release notes
> or an FAQ on the site.


+1

-- 
Eric Covener
covener@gmail.com

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Greg Stein <gs...@gmail.com>.
On Fri, Sep 25, 2015 at 11:51 AM, Rainer Jung <ra...@kippdata.de>
wrote:

> Am 25.09.2015 um 17:56 schrieb Plüm, Rüdiger, Vodafone Group:
>
>> ...
>>> +1 on CTR for mod_h2 in 2.4.x
>>>
>>>
>> Just to clarify: CTR only on the code in modules/http2. All changes /
>> adjustments that might be needed to mod_ssl should stay RTC.
>>
>
> +1 as detailed by Rüdiger.
>

+1

IMO, call it experimental, and detail what that means in the release notes
or an FAQ on the site.

Cheers,
-g

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Rainer Jung <ra...@kippdata.de>.
Am 25.09.2015 um 17:56 schrieb Plüm, Rüdiger, Vodafone Group:
>> -----Ursprüngliche Nachricht-----
>> Von: Plüm, Rüdiger, Vodafone Group
>> Gesendet: Freitag, 25. September 2015 17:51
>> An: dev@httpd.apache.org
>> Betreff: AW: mod_h2 CTR (Was: Re: svn commit: r1705257 -
>> /httpd/httpd/trunk/modules/http2/config.m4)
>>
>>
>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Jim Jagielski [mailto:jim@jaguNET.com]
>>> Gesendet: Freitag, 25. September 2015 17:46
>>> An: dev@httpd.apache.org
>>> Betreff: Re: mod_h2 CTR (Was: Re: svn commit: r1705257 -
>>> /httpd/httpd/trunk/modules/http2/config.m4)
>>>
>>> In any case, let's not bike-shed on what we call it, or whatever...
>>>
>>> Let's focus on deciding if we are cool with it being CTR once it's
>>> folded into 2.4.x and "handling" it as we do mod_lua.
>>
>> +1 on CTR for mod_h2 in 2.4.x
>>
>
> Just to clarify: CTR only on the code in modules/http2. All changes / adjustments that might be needed to mod_ssl should stay RTC.

+1 as detailed by Rüdiger.

Rainer

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Jim Jagielski <ji...@jaguNET.com>.
> 
> Just to clarify: CTR only on the code in modules/http2. All changes / adjustments that might be needed to mod_ssl should stay RTC.
> 

Yes.


AW: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Plüm, Rüdiger, Vodafone Group <ru...@vodafone.com>.

> -----Ursprüngliche Nachricht-----
> Von: Plüm, Rüdiger, Vodafone Group
> Gesendet: Freitag, 25. September 2015 17:51
> An: dev@httpd.apache.org
> Betreff: AW: mod_h2 CTR (Was: Re: svn commit: r1705257 -
> /httpd/httpd/trunk/modules/http2/config.m4)
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Jim Jagielski [mailto:jim@jaguNET.com]
> > Gesendet: Freitag, 25. September 2015 17:46
> > An: dev@httpd.apache.org
> > Betreff: Re: mod_h2 CTR (Was: Re: svn commit: r1705257 -
> > /httpd/httpd/trunk/modules/http2/config.m4)
> >
> > In any case, let's not bike-shed on what we call it, or whatever...
> >
> > Let's focus on deciding if we are cool with it being CTR once it's
> > folded into 2.4.x and "handling" it as we do mod_lua.
> 
> +1 on CTR for mod_h2 in 2.4.x
> 

Just to clarify: CTR only on the code in modules/http2. All changes / adjustments that might be needed to mod_ssl should stay RTC.

Regards

Rüdiger

AW: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Plüm, Rüdiger, Vodafone Group <ru...@vodafone.com>.

> -----Ursprüngliche Nachricht-----
> Von: Jim Jagielski [mailto:jim@jaguNET.com]
> Gesendet: Freitag, 25. September 2015 17:46
> An: dev@httpd.apache.org
> Betreff: Re: mod_h2 CTR (Was: Re: svn commit: r1705257 -
> /httpd/httpd/trunk/modules/http2/config.m4)
> 
> In any case, let's not bike-shed on what we call it, or whatever...
> 
> Let's focus on deciding if we are cool with it being CTR once it's
> folded into 2.4.x and "handling" it as we do mod_lua.

+1 on CTR for mod_h2 in 2.4.x

Regards

Rüdiger

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Jim Jagielski <ji...@jaguNET.com>.
In any case, let's not bike-shed on what we call it, or whatever...

Let's focus on deciding if we are cool with it being CTR once it's
folded into 2.4.x and "handling" it as we do mod_lua.

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Jim Jagielski <ji...@jaguNET.com>.
> On Sep 25, 2015, at 11:09 AM, Eric Covener <co...@gmail.com> wrote:
> 
> On Fri, Sep 25, 2015 at 11:06 AM, Yann Ylavic <yl...@gmail.com> wrote:
>> On Fri, Sep 25, 2015 at 4:31 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>>> I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
>>> in the same category as mod_lua... That is, somewhat "prod-experimental"
>>> in that some features may still change, but stable enough to be
>>> usable in production environs.
>> 
>> I like "prod-experimental" because I think it is production ready, and
>> still it lets us optimize the interface without giving developpers
>> (not users!) strong garanties.
>> 
>> Maybe the ALPN and protocol selection hooks could be marked as such
>> too, we could have the need to change a RUN_ONCE to a RUN_ALL for
>> those and shouldn't give too much garanties to other modules.
>> 
>> So if we can find a good wording to also express "prod-ready" (I guess
>> it already runs successfully in some prods), I'm +1.
> 
> 
> Not to be a wet blanket, but I don't think we have any real data for
> the production part of that. We could say the interfaces,
> configuration and defaults are experimental in the volatile sense.


'prod-dev' ? :)


Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 5:09 PM, Eric Covener <co...@gmail.com> wrote:
> On Fri, Sep 25, 2015 at 11:06 AM, Yann Ylavic <yl...@gmail.com> wrote:
>> On Fri, Sep 25, 2015 at 4:31 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>>> I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
>>> in the same category as mod_lua... That is, somewhat "prod-experimental"
>>> in that some features may still change, but stable enough to be
>>> usable in production environs.
>>
>> I like "prod-experimental" because I think it is production ready, and
>> still it lets us optimize the interface without giving developpers
>> (not users!) strong garanties.
>>
>> Maybe the ALPN and protocol selection hooks could be marked as such
>> too, we could have the need to change a RUN_ONCE to a RUN_ALL for
>> those and shouldn't give too much garanties to other modules.
>>
>> So if we can find a good wording to also express "prod-ready" (I guess
>> it already runs successfully in some prods), I'm +1.
>
>
> Not to be a wet blanket, but I don't think we have any real data for
> the production part of that. We could say the interfaces,
> configuration and defaults are experimental in the volatile sense.

Not mentioning it is not production ready is fine too :)
I wonder if "experimental" does not sound too much like this...

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Stefan Eissing <st...@greenbytes.de>.
> Am 25.09.2015 um 17:09 schrieb Eric Covener <co...@gmail.com>:
> 
> On Fri, Sep 25, 2015 at 11:06 AM, Yann Ylavic <yl...@gmail.com> wrote:
>> On Fri, Sep 25, 2015 at 4:31 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>>> I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
>>> in the same category as mod_lua... That is, somewhat "prod-experimental"
>>> in that some features may still change, but stable enough to be
>>> usable in production environs.
>> 
>> I like "prod-experimental" because I think it is production ready, and
>> still it lets us optimize the interface without giving developpers
>> (not users!) strong garanties.
>> 
>> Maybe the ALPN and protocol selection hooks could be marked as such
>> too, we could have the need to change a RUN_ONCE to a RUN_ALL for
>> those and shouldn't give too much garanties to other modules.
>> 
>> So if we can find a good wording to also express "prod-ready" (I guess
>> it already runs successfully in some prods), I'm +1.
> 
> 
> Not to be a wet blanket, but I don't think we have any real data for
> the production part of that. We could say the interfaces,
> configuration and defaults are experimental in the volatile sense.

I am unable to vote no this since the exact definition of the tag
names are not know to me. I have a an idea though, of course...

That being said: The new protocols hooks and the coupling to mod_ssl
could very well need fine tuning. We have feedback from the mod_websocket
maintainer that that module would need some additions. So marking these
parts as "experimental" sounds prudent.

As to the production readiness, waters are much more murky:
- several peeps have it running. thx to them, we found some bugs, which
  we otherwise would not have caught that easily.
- we will continue to find bugs. httpd lives in a huge ecosystem and
  mod_h2 has not seen all sorts of weather yet.
- oth when I look back to what I have seen in enterprises deployed
  as "production ready", it looks very solid.
- As Yann mentioned, httpd stays able to rock-solid serve HTTP
  traffic from clients with mod_h2 unloaded. We have not implemented
  any APIs from mod_h2 to other modules (for example the Server Push)
  feature that would get lost when unloaded.
- Any hot fixes to mod_h2 itself, can be delivered to adventuring
  people via the github repo. With a 2.4.18 httpd out there, peeps
  can build mod_h2 for themselves so much more easily, basically
  just needing the proper apxs. That can give us fast turnaround
  on tests in deployed settings which we merge back to trunk, 
  aggregate and backport for the next 2.4.x

Cheers,

  Stefan

<green/>bytes GmbH
Hafenweg 16, 48155 Münster, Germany
Phone: +49 251 2807760. Amtsgericht Münster: HRB5782




Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Eric Covener <co...@gmail.com>.
On Fri, Sep 25, 2015 at 11:06 AM, Yann Ylavic <yl...@gmail.com> wrote:
> On Fri, Sep 25, 2015 at 4:31 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>> I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
>> in the same category as mod_lua... That is, somewhat "prod-experimental"
>> in that some features may still change, but stable enough to be
>> usable in production environs.
>
> I like "prod-experimental" because I think it is production ready, and
> still it lets us optimize the interface without giving developpers
> (not users!) strong garanties.
>
> Maybe the ALPN and protocol selection hooks could be marked as such
> too, we could have the need to change a RUN_ONCE to a RUN_ALL for
> those and shouldn't give too much garanties to other modules.
>
> So if we can find a good wording to also express "prod-ready" (I guess
> it already runs successfully in some prods), I'm +1.


Not to be a wet blanket, but I don't think we have any real data for
the production part of that. We could say the interfaces,
configuration and defaults are experimental in the volatile sense.

Re: mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 4:31 PM, Jim Jagielski <ji...@jagunet.com> wrote:
> I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
> in the same category as mod_lua... That is, somewhat "prod-experimental"
> in that some features may still change, but stable enough to be
> usable in production environs.

I like "prod-experimental" because I think it is production ready, and
still it lets us optimize the interface without giving developpers
(not users!) strong garanties.

Maybe the ALPN and protocol selection hooks could be marked as such
too, we could have the need to change a RUN_ONCE to a RUN_ALL for
those and shouldn't give too much garanties to other modules.

So if we can find a good wording to also express "prod-ready" (I guess
it already runs successfully in some prods), I'm +1.

mod_h2 CTR (Was: Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4)

Posted by Jim Jagielski <ji...@jaguNET.com>.
I'd like to propose that we consider mod_h2 in 2.4.x as CTR and
in the same category as mod_lua... That is, somewhat "prod-experimental"
in that some features may still change, but stable enough to be
usable in production environs.


Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Jim Jagielski <ji...@jaguNET.com>.
> On Sep 25, 2015, at 9:14 AM, Yann Ylavic <yl...@gmail.com> wrote:
> 
> On Fri, Sep 25, 2015 at 2:42 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>> 
>>> On Sep 25, 2015, at 6:41 AM, Stefan Eissing <st...@greenbytes.de> wrote:
>>> 
>>> 
>>>> Am 25.09.2015 um 12:32 schrieb Yann Ylavic <yl...@gmail.com>:
>>>> 
>>>> On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
>>>> <st...@greenbytes.de> wrote:
>>>>> 
>>>>> I see. And rename the configuration options and documentation, while we are at it...
>>>> 
>>>> Note that I'm *not* against the name being h2!
>>> 
>>> Yann, I know. And I do not want to say that "http2" is a wrong name. Or that I could not live with it. However, I increasingly feel that such notions as adding a "--enabled-http2" for making it look nicer, is not properly addressing the issue:
>>> 
>>> - Modules are configured with --enable-<modname>
>>> - Modules are loaded with LoadModule <modname>_module modules/mod_<modname>.so"
>>> - Modules documentation are found in docs/manual/mod/mod_<modname>.html
>>> - Config directives are by default <modname, camelcase>*
>>> - test cases, etc. ...
>>> 
>> 
>> Well, as I said, http/1.x is itself implemented as a module,
>> and lives in modules/http and is enabled via --enable-http,
>> so, to be consistent, http2 should stay in modules/ and be enabled
>> via --enable-http2.
> 
> What should be the name of the module? http2_module/mod_http2 or as
> currently h2_module/mod_h2?

I'm fine with whatever really at this point :)

"Bikeshedding, thy name is httpd" :)

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 2:42 PM, Jim Jagielski <ji...@jagunet.com> wrote:
>
>> On Sep 25, 2015, at 6:41 AM, Stefan Eissing <st...@greenbytes.de> wrote:
>>
>>
>>> Am 25.09.2015 um 12:32 schrieb Yann Ylavic <yl...@gmail.com>:
>>>
>>> On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
>>> <st...@greenbytes.de> wrote:
>>>>
>>>> I see. And rename the configuration options and documentation, while we are at it...
>>>
>>> Note that I'm *not* against the name being h2!
>>
>> Yann, I know. And I do not want to say that "http2" is a wrong name. Or that I could not live with it. However, I increasingly feel that such notions as adding a "--enabled-http2" for making it look nicer, is not properly addressing the issue:
>>
>> - Modules are configured with --enable-<modname>
>> - Modules are loaded with LoadModule <modname>_module modules/mod_<modname>.so"
>> - Modules documentation are found in docs/manual/mod/mod_<modname>.html
>> - Config directives are by default <modname, camelcase>*
>> - test cases, etc. ...
>>
>
> Well, as I said, http/1.x is itself implemented as a module,
> and lives in modules/http and is enabled via --enable-http,
> so, to be consistent, http2 should stay in modules/ and be enabled
> via --enable-http2.

What should be the name of the module? http2_module/mod_http2 or as
currently h2_module/mod_h2?

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Jim Jagielski <ji...@jaguNET.com>.
> On Sep 25, 2015, at 6:41 AM, Stefan Eissing <st...@greenbytes.de> wrote:
> 
> 
>> Am 25.09.2015 um 12:32 schrieb Yann Ylavic <yl...@gmail.com>:
>> 
>> On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
>> <st...@greenbytes.de> wrote:
>>> 
>>> I see. And rename the configuration options and documentation, while we are at it...
>> 
>> Note that I'm *not* against the name being h2!
> 
> Yann, I know. And I do not want to say that "http2" is a wrong name. Or that I could not live with it. However, I increasingly feel that such notions as adding a "--enabled-http2" for making it look nicer, is not properly addressing the issue:
> 
> - Modules are configured with --enable-<modname>
> - Modules are loaded with LoadModule <modname>_module modules/mod_<modname>.so"
> - Modules documentation are found in docs/manual/mod/mod_<modname>.html
> - Config directives are by default <modname, camelcase>*
> - test cases, etc. ...
> 

Well, as I said, http/1.x is itself implemented as a module,
and lives in modules/http and is enabled via --enable-http,
so, to be consistent, http2 should stay in modules/ and be enabled
via --enable-http2. 

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 12:41 PM, Stefan Eissing
<st...@greenbytes.de> wrote:
>
>> Am 25.09.2015 um 12:32 schrieb Yann Ylavic <yl...@gmail.com>:
>>
>> On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
>> <st...@greenbytes.de> wrote:
>>>
>>> I see. And rename the configuration options and documentation, while we are at it...
>>
>> Note that I'm *not* against the name being h2!
>
> Yann, I know. And I do not want to say that "http2" is a wrong name. Or that I could not live with it. However, I increasingly feel that such notions as adding a "--enabled-http2" for making it look nicer, is not properly addressing the issue:

I won't argue here, you are totally right.
I didn't mean to be punctilious about the name, but thought naively
(at the time) that "--enable-http2" magic would have pleased every
one...
That rather proves to complicate things :/

>
> - Modules are configured with --enable-<modname>
> - Modules are loaded with LoadModule <modname>_module modules/mod_<modname>.so"
> - Modules documentation are found in docs/manual/mod/mod_<modname>.html
> - Config directives are by default <modname, camelcase>*
> - test cases, etc. ...
>
> So, either someone has the time to do all this, or I propose we leave it as is and remove the "--enable-http2" again.

+1 for the latter (still), and sorry for the troubles.

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Stefan Eissing <st...@greenbytes.de>.
> Am 25.09.2015 um 12:32 schrieb Yann Ylavic <yl...@gmail.com>:
> 
> On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
> <st...@greenbytes.de> wrote:
>> 
>> I see. And rename the configuration options and documentation, while we are at it...
> 
> Note that I'm *not* against the name being h2!

Yann, I know. And I do not want to say that "http2" is a wrong name. Or that I could not live with it. However, I increasingly feel that such notions as adding a "--enabled-http2" for making it look nicer, is not properly addressing the issue:

- Modules are configured with --enable-<modname>
- Modules are loaded with LoadModule <modname>_module modules/mod_<modname>.so"
- Modules documentation are found in docs/manual/mod/mod_<modname>.html
- Config directives are by default <modname, camelcase>*
- test cases, etc. ...

So, either someone has the time to do all this, or I propose we leave it as is and remove the "--enable-http2" again.

Cheers,

  Stefan

Again, if the PMC feels the need to do this and someone can do this in a timely manner, I will not stand against it.

<green/>bytes GmbH
Hafenweg 16, 48155 Münster, Germany
Phone: +49 251 2807760. Amtsgericht Münster: HRB5782




Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 11:58 AM, Stefan Eissing
<st...@greenbytes.de> wrote:
>
>> Am 25.09.2015 um 11:40 schrieb Yann Ylavic <yl...@gmail.com>:
>>
>> On Fri, Sep 25, 2015 at 11:31 AM, Stefan Eissing
>> <st...@greenbytes.de> wrote:
>>>
>>>> APACHE_MODULE(h2,
>>>
>>> since there is no modules named "http2"?
>>
>> --enable-http2=x sets enable_http2=x, so we force enable_http2=no if
>> --enable-http2 isn't used, like we force enable_h2=no wrt enable-h2.
>>
>> Btw, whatever --enable-h[ttp]2 is used at configure time, we will
>> always need "LoadModule h2_module modules/mod_h2.so".
>> IMHO we'd better choose one name or the other...
>
> I see. And rename the configuration options and documentation, while we are at it...

Note that I'm *not* against the name being h2!

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Stefan Eissing <st...@greenbytes.de>.
> Am 25.09.2015 um 11:40 schrieb Yann Ylavic <yl...@gmail.com>:
> 
> On Fri, Sep 25, 2015 at 11:31 AM, Stefan Eissing
> <st...@greenbytes.de> wrote:
>> 
>>> APACHE_MODULE(h2,
>> 
>> since there is no modules named "http2"?
> 
> --enable-http2=x sets enable_http2=x, so we force enable_http2=no if
> --enable-http2 isn't used, like we force enable_h2=no wrt enable-h2.
> 
> Btw, whatever --enable-h[ttp]2 is used at configure time, we will
> always need "LoadModule h2_module modules/mod_h2.so".
> IMHO we'd better choose one name or the other...

I see. And rename the configuration options and documentation, while we are at it...

<green/>bytes GmbH
Hafenweg 16, 48155 Münster, Germany
Phone: +49 251 2807760. Amtsgericht Münster: HRB5782




Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Sep 25, 2015 at 11:31 AM, Stefan Eissing
<st...@greenbytes.de> wrote:
>
>> APACHE_MODULE(h2,
>
> since there is no modules named "http2"?

--enable-http2=x sets enable_http2=x, so we force enable_http2=no if
--enable-http2 isn't used, like we force enable_h2=no wrt enable-h2.

Btw, whatever --enable-h[ttp]2 is used at configure time, we will
always need "LoadModule h2_module modules/mod_h2.so".
IMHO we'd better choose one name or the other...

Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Stefan Eissing <st...@greenbytes.de>.
Ah, understood. Thanks!

But would it then not make more sense to have both --enable-* do:

> APACHE_MODULE(h2,

since there is no modules named "http2"?

> Am 25.09.2015 um 11:23 schrieb Ruediger Pluem <rp...@apache.org>:
> 
> 
> 
> On 09/25/2015 10:58 AM, Stefan Eissing wrote:
>> Me not fully understand. Why at all and why only there? (curiousity)
> 
> Because it tries to build mod_h2 even if nghttp2 is not present.
> 
> Because
> 
> APACHE_MODULE(http2,
> 
> and
> 
> APACHE_MODULE(h2,
> 
> effectively setup two distinct modules with the same object files (h2_objs)
> 
> and if you do not set enable_http2 / enable_h2 to no the objects will be build even if not explicitly asked for because
> they belong to most and I configure with --enable-mods-shared=all.
> 
> This worked fine before we had this 2 name approach. It will be interesting to see what it does if nghttp2 is present
> as it likely tries to build and enable mod_http2 and mod_h2. I guess building will work due to the fact that it just
> compiles h2_objs twice, but I guess we will have two LoadModule directives in the resulting httpd.conf:
> One for mod_http2 and one for mod_h2.
> 
> Regards
> 
> Rüdiger
> 
>> 
>>> Am 25.09.2015 um 10:54 schrieb rpluem@apache.org:
>>> 
>>> Author: rpluem
>>> Date: Fri Sep 25 08:54:38 2015
>>> New Revision: 1705257
>>> 
>>> URL: http://svn.apache.org/viewvc?rev=1705257&view=rev
>>> Log:
>>> * Disable the http2 modules if nghttp2 is not present
>>> 
>>> Modified:
>>>   httpd/httpd/trunk/modules/http2/config.m4
>>> 
>>> Modified: httpd/httpd/trunk/modules/http2/config.m4
>>> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/config.m4?rev=1705257&r1=1705256&r2=1705257&view=diff
>>> ==============================================================================
>>> --- httpd/httpd/trunk/modules/http2/config.m4 (original)
>>> +++ httpd/httpd/trunk/modules/http2/config.m4 Fri Sep 25 08:54:38 2015
>>> @@ -181,7 +181,7 @@ is usually linked shared and requires lo
>>>           APR_ADDTO(MOD_H2_LDADD, [-export-symbols-regex h2_module])
>>>        fi
>>>    else
>>> -        enable_h2=no
>>> +        enable_http2=no
>>>    fi
>>> ])
>>> APACHE_MODULE(h2, [HTTP/2 support (Deprecated. Use --enable-http2)], $h2_objs, , most, [
>>> 
>>> 
>> 
>> 

<green/>bytes GmbH
Hafenweg 16, 48155 Münster, Germany
Phone: +49 251 2807760. Amtsgericht Münster: HRB5782




Re: svn commit: r1705257 - /httpd/httpd/trunk/modules/http2/config.m4

Posted by Ruediger Pluem <rp...@apache.org>.

On 09/25/2015 10:58 AM, Stefan Eissing wrote:
> Me not fully understand. Why at all and why only there? (curiousity)

Because it tries to build mod_h2 even if nghttp2 is not present.

Because

APACHE_MODULE(http2,

and

APACHE_MODULE(h2,

effectively setup two distinct modules with the same object files (h2_objs)

and if you do not set enable_http2 / enable_h2 to no the objects will be build even if not explicitly asked for because
they belong to most and I configure with --enable-mods-shared=all.

This worked fine before we had this 2 name approach. It will be interesting to see what it does if nghttp2 is present
as it likely tries to build and enable mod_http2 and mod_h2. I guess building will work due to the fact that it just
compiles h2_objs twice, but I guess we will have two LoadModule directives in the resulting httpd.conf:
One for mod_http2 and one for mod_h2.

Regards

Rüdiger

> 
>> Am 25.09.2015 um 10:54 schrieb rpluem@apache.org:
>>
>> Author: rpluem
>> Date: Fri Sep 25 08:54:38 2015
>> New Revision: 1705257
>>
>> URL: http://svn.apache.org/viewvc?rev=1705257&view=rev
>> Log:
>> * Disable the http2 modules if nghttp2 is not present
>>
>> Modified:
>>    httpd/httpd/trunk/modules/http2/config.m4
>>
>> Modified: httpd/httpd/trunk/modules/http2/config.m4
>> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/config.m4?rev=1705257&r1=1705256&r2=1705257&view=diff
>> ==============================================================================
>> --- httpd/httpd/trunk/modules/http2/config.m4 (original)
>> +++ httpd/httpd/trunk/modules/http2/config.m4 Fri Sep 25 08:54:38 2015
>> @@ -181,7 +181,7 @@ is usually linked shared and requires lo
>>            APR_ADDTO(MOD_H2_LDADD, [-export-symbols-regex h2_module])
>>         fi
>>     else
>> -        enable_h2=no
>> +        enable_http2=no
>>     fi
>> ])
>> APACHE_MODULE(h2, [HTTP/2 support (Deprecated. Use --enable-http2)], $h2_objs, , most, [
>>
>>
> 
>