You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/10/19 06:10:06 UTC
[Bug 60276] New: upgrade HTTP/2 can't use gzip compress.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Bug ID: 60276
Summary: upgrade HTTP/2 can't use gzip compress.
Product: Tomcat 8
Version: 8.5.6
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
Assignee: dev@tomcat.apache.org
Reporter: cnsilvan@gmail.com
Gzip compress is work when only use apr.But it doesn't work after upgrade
Http/2;
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
pc8888@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #10 from pc8888@gmail.com ---
tomcat 8.5.27, this problem is still not fixed.
Removed <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"/>
and gzip works again.
<Connector .....
compression="on"
port="443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
......... >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"/>
<SSLHostConfig
........../>
</SSLHostConfig>
</Connector>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #7 from cnsilvan <cn...@gmail.com> ---
(In reply to Konstantin Kolinko from comment #6)
> I think that using compression with dynamic data (as in your configuration)
> is insecure. There are well-known CRIME and BREACH attacks. See
>
> https://en.wikipedia.org/wiki/CRIME
>
> Tomcat 8.5 and 9 can be configured to serve pre-compressed static files.
> This is configured with init-param "precompressed" of DefaultServlet.
>
> http://tomcat.apache.org/tomcat-8.5-doc/default-servlet.html
thank u!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #9 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.3 onwards
- 8.5.x for 8.5.25 onwards
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Remy Maucherat <re...@apache.org> ---
Please do not reopen the report. Please post on the user list if you need
further assistance.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #2 from cnsilvan <cn...@gmail.com> ---
In server.xml,like this:
<Connector ..... compressableMimeType="text/html,text/javascript"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
......... >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"/>
<SSLHostConfig
........../>
</SSLHostConfig>
</Connector>
The compression="on" doesn't work when use this config.
But if I remove "UpgradeProtocol" element ,it works;
Simply put, when using http / 2, the compression function is not available.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #6 from Konstantin Kolinko <kn...@gmail.com> ---
I think that using compression with dynamic data (as in your configuration) is
insecure. There are well-known CRIME and BREACH attacks. See
https://en.wikipedia.org/wiki/CRIME
Tomcat 8.5 and 9 can be configured to serve pre-compressed static files. This
is configured with init-param "precompressed" of DefaultServlet.
http://tomcat.apache.org/tomcat-8.5-doc/default-servlet.html
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #12 from Paul <pc...@opentext.com> ---
Hi
I am trying to setup http2 with compression I agree this still does not work
Not sure what this previous comment means
Please do not reopen the report. Please post on the user list if you need
further assistance.
It still broken so why should we not reopen this ticket
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #8 from Eduardo Guadalupe Quintanilla <eq...@bnext.mx> ---
I had a similar issue, in my case it worked after adding
useSendfile="false".
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Paul <pc...@opentext.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #13 from Paul <pc...@opentext.com> ---
Hi
I am trying to setup http2 with compression I agree this still does not work
Not sure what this previous comment means
Please do not reopen the report. Please post on the user list if you need
further assistance.
It still broken so why should we not reopen this ticket
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
--- Comment #5 from cnsilvan <cn...@gmail.com> ---
(In reply to Remy Maucherat from comment #4)
> Ok. I would say it is unlikely integrated compression is implemented in
> HTTP/2 as it was in the HTTP/1.1. We'll see, but it's probably a good idea
> to plan to migrate to a different solution for compression.
>
> Right now, there's also no provision to pull configuration from the
> Connector as well, the UpgradeProtocol element is independent.
Nginx can use gzip compression with http/2 module.
So I think, tomcat may also support.(sad...)
Maybe tomcat will support in the future...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
I don't understand, can you explain the issue more thoroughly ?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #4 from Remy Maucherat <re...@apache.org> ---
Ok. I would say it is unlikely integrated compression is implemented in HTTP/2
as it was in the HTTP/1.1. We'll see, but it's probably a good idea to plan to
migrate to a different solution for compression.
Right now, there's also no provision to pull configuration from the Connector
as well, the UpgradeProtocol element is independent.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|REOPENED |RESOLVED
--- Comment #14 from Mark Thomas <ma...@apache.org> ---
This feature is not broken. It was implemented at the end of last year and has
been confirmed to be working as intended on multiple occasions since then.
To expand on Remy's previous comment.
Do not re-open this report means exactly that. Do not re-open this report.
This report is the enhancement request to add compression support to HTTP/2.
That support has been added so this issue has been resolved. That you can't get
it to work does not mean that the feature is broken. Given that:
- there are no relevant code changes since the feature was added
- it has been confirmed working multiple times
the more likely explanation is a configuration issue, not a bug.
Looking at the configuration provided in comment #10, that report at least is
clearly a configuration issue.
Configuration issues are support questions and Bugzilla is not a support forum.
Hence re-opening a bug in order to obtain configuration help is not acceptable
behaviour in this community.
The correct place to seek configuration assistance is the users mailing list.
Hence the second part of Remy's comment.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 60276] upgrade HTTP/2 can't use gzip compress.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60276
cnsilvan <cn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #3 from cnsilvan <cn...@gmail.com> ---
(In reply to Remy Maucherat from comment #1)
> I don't understand, can you explain the issue more thoroughly ?
In server.xml,like this:
<Connector ..... compressableMimeType="text/html,text/javascript"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
......... >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"/>
<SSLHostConfig
........../>
</SSLHostConfig>
</Connector>
The compression="on" doesn't work when use this config.
But if I remove "UpgradeProtocol" element ,it works;
Simply put, when using http / 2, the compression function is not available.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org