Re: HTTP/2 support in Maven

2020-10-25 Thread Benjamin Marwell
http/2 is not available before Java 8.
ALPN and TLS 1.3 are requirements for h2.

I saw httpClient 5 implemented http/2. That's fine and that's why you may
have successfully connected tomcat with a http/2 client.

Try another application server which does not use httpClient, e.g.
OpenLiberty. You will not be able to have a http/2 server side protocol
support.


I hope this helped for clarification. Thus, I consider my previous mail
*not* nonsense.

If maven didn't use httpClient (which I was not aware of at time of
writing), my statement would have been true: just use Java 9+ and it will
connect via http/2.

I am sorry this caused confusion, but I did not like your response which
did sound "aggressive" to me. I will therefore not contribute to this
project soon.


On Sun, 25 Oct 2020, 19:54 Michael Osipov,  wrote:

> Am 2020-10-25 um 19:09 schrieb Benjamin Marwell:
> > While TLS 1.3 and ALPN (and ciphers) may have been backported, I am not
> > aware of http2 being backported to Java 8. Even if it was, it would not
> be
> > part of EVERY JVM implementation, eg Eclipse OpenJ9.
>
> You are talking non-sense. Don't mix lower level protocols like TLS with
> application protocols. Moreover, there is still h2c.
>
> Tomcat 8.5+ just works fine with h2 and h2c when connected via curl.
>
> > On Sun, 25 Oct 2020, 09:52 Michael Osipov,  wrote:
> >
> >> Am 2020-10-24 um 14:25 schrieb Benjamin Marwell:
> >>> You need at least java 9 for http/2. Java 11 is a current LTS release
> >> which
> >>> supports h2.
> >>
> >> Why? TLS 1.3 and ALPN have been backported to Java 8 recently.
> >>
> >>> Is there anything in the transport code preventing h2 transport?
> >>
> >> Yes, your participation to do the work!
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: HTTP/2 support in Maven

2020-10-25 Thread Michael Osipov

Am 2020-10-25 um 19:09 schrieb Benjamin Marwell:

While TLS 1.3 and ALPN (and ciphers) may have been backported, I am not
aware of http2 being backported to Java 8. Even if it was, it would not be
part of EVERY JVM implementation, eg Eclipse OpenJ9.


You are talking non-sense. Don't mix lower level protocols like TLS with 
application protocols. Moreover, there is still h2c.


Tomcat 8.5+ just works fine with h2 and h2c when connected via curl.


On Sun, 25 Oct 2020, 09:52 Michael Osipov,  wrote:


Am 2020-10-24 um 14:25 schrieb Benjamin Marwell:

You need at least java 9 for http/2. Java 11 is a current LTS release

which

supports h2.


Why? TLS 1.3 and ALPN have been backported to Java 8 recently.


Is there anything in the transport code preventing h2 transport?


Yes, your participation to do the work!

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: HTTP/2 support in Maven

2020-10-25 Thread Benjamin Marwell
While TLS 1.3 and ALPN (and ciphers) may have been backported, I am not
aware of http2 being backported to Java 8. Even if it was, it would not be
part of EVERY JVM implementation, eg Eclipse OpenJ9.





On Sun, 25 Oct 2020, 09:52 Michael Osipov,  wrote:

> Am 2020-10-24 um 14:25 schrieb Benjamin Marwell:
> > You need at least java 9 for http/2. Java 11 is a current LTS release
> which
> > supports h2.
>
> Why? TLS 1.3 and ALPN have been backported to Java 8 recently.
>
> > Is there anything in the transport code preventing h2 transport?
>
> Yes, your participation to do the work!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: HTTP/2 support in Maven

2020-10-25 Thread Michael Osipov

Am 2020-10-23 um 10:08 schrieb Jakub Bartecek:

Hello,
I'd like to ask if it is possible to turn on HTTP/2 support in Maven. I
haven't found such an option.

If not: Are there any plans to add the support?


There is nothing to turn on and that would be unwise, something like 
this should be done through ALPN.


Maven uses by default Wagon HTTP Transport on top of Apache 
HttpComponents 4.5.x. Beginning with Apache HttpComponent 5.0 HTTP/2 is 
supported. One would need to write a new (updated) HTTP Transport to 
move all gone.
There is one crucial issue needs to be solved first: HTTPCORE-626. Also 
read the related discussion [1].


Is there anything explicitly you expect from HTTP/2 compared to 
HTTP/1.1? I have done a lot of internal improvements to Wagon HTTP this 
year which covers a lot of use cases.


Have you done testing with curl which proves some kind of improvement?
I have talked about possible benefits of HTTP/2 in corporate 
environments with jfclere@ and he sees little benefit because when you 
have a repo manager in house, you have (a) a gigabit connection and (b) 
minimal hops between client and repo manager.


Michael

[1] 
https://www.mail-archive.com/httpclient-users@hc.apache.org/msg09851.html


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: HTTP/2 support in Maven

2020-10-25 Thread Michael Osipov

Am 2020-10-24 um 14:25 schrieb Benjamin Marwell:

You need at least java 9 for http/2. Java 11 is a current LTS release which
supports h2.


Why? TLS 1.3 and ALPN have been backported to Java 8 recently.


Is there anything in the transport code preventing h2 transport?


Yes, your participation to do the work!

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org