Re: Http11NioProtocol with TLS seems to be very slow for certain requests >= 9.0.48

2021-08-06 Thread Mark Thomas
On August 6, 2021 1:35:24 PM UTC, Benjamin Grenacher 
 wrote:
>Recently updated from 9.0.43 to 9.0.50 and are having similar symptoms
>as already reported ("Possible Http11NioProtocol regression since
>9.0.48?").
>
>Integration test runs have shown this issue seems to occur for browser
>tests only. Since we have larger JS files and requests take about 1 min
>(default connectionTimeout/keepAliveTimeout) this seems to be the same
>issue.
>
>Downgrading to 9.0.48 shows that the issue persists.
>
>Related active configuration is only "compression=off" the rest is
>default. Trying to change configuration (useSendfile, selectorTimeout,
>useBomIfPresent) didn't help.
>
>Seems to be resolved when using HTTP (no TLS).
>
>
>Running on docker swarm through reverse proxy and without explicit
>reverse proxy (swarm internally routes traffic, so kind of "proxy" in
>place).
>
>When running through reverse proxy there occur "I/O Errors" reported by
>the proxy (not restricted to JS file requests - e.g. includes favicon
>and svg requests).
>
>Related error logs (browser):
>
>https://XXX...b85a.js - Failed to load resource:
>net::ERR_CONTENT_LENGTH_MISMATCH
>
>https://XXX..f.min.js 14:1649 Uncaught SyntaxError: Unexpected end of
>input
>
>
>Running with local docker containers (without proxy): Can't reproduce
>issue.
>
>
>Let me know if you need anything else.

Most likely this:

https://bz.apache.org/bugzilla/show_bug.cgi?id=65448

Fix is in 9.0.51 onwards. Should be available in a few days if the vote is 
successful.

Switch to NIO2 if you need an immediate work around.

Mark

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



Http11NioProtocol with TLS seems to be very slow for certain requests >= 9.0.48

2021-08-06 Thread Benjamin Grenacher
Recently updated from 9.0.43 to 9.0.50 and are having similar symptoms as 
already reported ("Possible Http11NioProtocol regression since 9.0.48?").

Integration test runs have shown this issue seems to occur for browser tests 
only. Since we have larger JS files and requests take about 1 min (default 
connectionTimeout/keepAliveTimeout) this seems to be the same issue.

Downgrading to 9.0.48 shows that the issue persists.

Related active configuration is only "compression=off" the rest is default. 
Trying to change configuration (useSendfile, selectorTimeout, useBomIfPresent) 
didn't help.

Seems to be resolved when using HTTP (no TLS).


Running on docker swarm through reverse proxy and without explicit reverse 
proxy (swarm internally routes traffic, so kind of "proxy" in place).

When running through reverse proxy there occur "I/O Errors" reported by the 
proxy (not restricted to JS file requests - e.g. includes favicon and svg 
requests).

Related error logs (browser):

https://XXX...b85a.js - Failed to load resource: 
net::ERR_CONTENT_LENGTH_MISMATCH

https://XXX..f.min.js 14:1649 Uncaught SyntaxError: Unexpected end of input


Running with local docker containers (without proxy): Can't reproduce issue.


Let me know if you need anything else.


Ben