https://bz.apache.org/bugzilla/show_bug.cgi?id=63949
Bug ID: 63949
Summary: ERR_INCOMPLETE_CHUNKED_ENCODING errors when using NIO
Connector with HTTPS
Product: Tomcat 9
Version: 9.0.20
Hardware: Macintosh
Status: NEW
Severity: normal
Priority: P2
Component: Util
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 36892
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36892&action=edit
patch for NioEndpoint to use pool writes when blocking & non-blocking
Product: Tomcat 9.0.20+
Component: tomcat/java/org/apache/tomcat/util/net/NioEndpoint.java
Platform: macOS Mojave 10.14.6
Java version: 1.8.0_202 (Oracle Corporation)
Using the NIO Connector with SSL, I am seeing issues with the chunked
responses. It's been sporadic, but repeatable with my application within 20
attempts (though usually just the first after a fresh start is enough). Tried
on 8.5.40 and 8.5.47, and did not experience the issue.
It shows up in Chrome as:
> net::ERR_INCOMPLETE_CHUNKED_ENCODING
Going back to older Tomcat versions, we were able to narrow it down to 9.0.20
being the first version with the issue, specifically this commit:
https://github.com/apache/tomcat/commit/4377d2db40
With the move to a straight write during non-blocking writes, the case for a
non-blocking write with a shared selector is different. By reverting back to a
pool write, I was able to make fix the issue.
Attached patch applies to master branch, commit
0872b1a498610b008acbdaa719895ae15370359a.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]