By default, we enable HTTP/2 automatically for HTTPS listeners, if I'm reading the code correctly.
You can disable it by setting `thorntail.undertow.servers.default-server.https-listeners.default-https.enable-http2` to `false`. (Or, if you're creating an HTTPS listener manually, use your own name.)
LT
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/021d3eb9-d7ca-4826-8d8a-eac33ed7004co%40googlegroups.com.
*Hi
Not work well (just try ssl):
https:
certificate:
generate: true
port: 8443
undertow:
servers:
default:
I think the default server is called `default-server`. Unfortunately the default names are not terribly easy to find, not sure how to improve that :-(
LT
https-listeners:
default-https:
enable-http2: false # currently firefox not working well with it
socket-binding: https2020. június 18., csütörtök 11:46:15 UTC+2 időpontban Gergely a következőt írta:
How to disable HTTP2 by config?Firefox cause at resources: WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-5) : java.nio.channels.ClosedChannelExceptionOther info: https://developer.jboss.org/thread/273605
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/ba6be9f7-2952-4c12-91f9-be8a744f9b27o%40googlegroups.com.
Configuration of items with the KEY parameter
A configuration item documented as
thorntail.undertow.servers.KEY.default-host
indicates that the configuration applies to a particular named server.In practical usage, the property would be, for example,
thorntail.undertow.servers.default.default-host
for a server known asdefault
.
`thorntail.undertow.servers.default-server.https-listeners.default-https.enable-http2` to `false`
On 18. 06. 20 11:50, Gergely wrote:
*Hi
Not work well (just try ssl):
https:
certificate:
generate: true
port: 8443
undertow:
servers:
default:
I think the default server is called `default-server`. Unfortunately the default names are not terribly easy to find, not sure how to improve that :-(
LT
--https-listeners:
default-https:
enable-http2: false # currently firefox not working well with it
socket-binding: https2020. június 18., csütörtök 11:46:15 UTC+2 időpontban Gergely a következőt írta:
How to disable HTTP2 by config?Firefox cause at resources: WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-5) : java.nio.channels.ClosedChannelExceptionOther info: https://developer.jboss.org/thread/273605
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.
Hi,
so, yea, you're right, the default names are hard to find (easiest is to add the `management` fraction, which you need for HTTPS anyway, and connect to the running server via WildFly CLI). But that's not the biggest problem.
It seems the configuration is read before the HTTP/2 support is automatically configured, and while there's some support for re-reading the configuration after all such customizations are performed, for some reason it is skipped in this case.
I'm afraid there's no easy way to disable HTTP/2 right now.
LT
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/e976775b-c8d2-4863-9dca-4f469e3ccf27o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/e976775b-c8d2-4863-9dca-4f469e3ccf27o%40googlegroups.com.
That is possible, but won't help, as the HTTP2Customizer modifies all HTTPS listeners on all Undertow servers.
I'm sorry, but you just ran into a pretty serious bug in
Thorntail's configuration system.
LT
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/f39b541c-1429-4fff-9f54-f50ecbb16f88o%40googlegroups.com.
Just a few more things.
A very crude workaround is possible: when you build your uberjar
(say myapp-thorntail.jar), you can enter it, go to
m2repo/io/thorntail/undertow/2.7.0.Final/, enter the
undertow-2.7.0.Final.jar archive, go to
org/wildfly/swarm/undertow/runtime and delete the
HTTP2Customizer.class file. That will make sure automatic
enablement of HTTP/2 is gone for good. As I said, very crude, but
effective :-) I'll submit a PR later today to allow ignoring
customizers via configuration -- not a real solution, but at least
a reasonable workaround.
Also, it seems to me that you're just starting a new project with Thorntail -- if that's the case, I'd recommend you look into migrating it to WildFly or Quarkus before it becomes too big. Thorntail is near the end of its lifecycle.
LT
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/1beefc39-7388-b131-d693-0ff402eaee01%40redhat.com.
Red Hat build of Quarkus 1.x end: Oct 2020
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/f39b541c-1429-4fff-9f54-f50ecbb16f88o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/1beefc39-7388-b131-d693-0ff402eaee01%40redhat.com.
I'm talking about community projects here.
What you're linking only applies to Red Hat products. (The Red
Hat product based on Quarkus is called "Red Hat build of Quarkus",
while the Red Hat product based on WildFly is called "Red Hat
JBoss Enterprise Application Platform".)
LT
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/ea830a22-74ee-4ac3-b1a5-131885d4d793o%40googlegroups.com.
Just a few more things.
A very crude workaround is possible: when you build your uberjar (say myapp-thorntail.jar), you can enter it, go to m2repo/io/thorntail/undertow/2.7.0.Final/, enter the undertow-2.7.0.Final.jar archive, go to org/wildfly/swarm/undertow/runtime and delete the HTTP2Customizer.class file. That will make sure automatic enablement of HTTP/2 is gone for good. As I said, very crude, but effective :-) I'll submit a PR later today to allow ignoring customizers via configuration -- not a real solution, but at least a reasonable workaround.
I've filed an issue for that: https://issues.redhat.com/browse/THORN-2576 and submitted a PR.
LT
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/b6a01e8c-03ea-a83f-de58-0d83741263f3%40redhat.com.