When upgrading from JBOSS 7 to WILDFLY10, we observed following behavior:
if an HTTP post contains 'Transfer-Encoding: chunked' and 'Content-Type:appliation/octet-stream' in its head, A servlet which handles it will hang for ever ( until the client drop the connection) if it calls HttpServletRequest.getInputStream() and tries to read the whole content of the returned InputStream. The InputStream's read() method will block for ever at the end of the stream as opposed to return -1.
It only happens when the request is routed by apache web server through ajp; it does not happen if the client talks to wildfly directly through its 8080 http port.
We have attached a minimal web application that reproduce this issue.
Also attached is the standalone.xml and the apache configuration file.
- clones
-
WFLY-6671 ajp connection hangs if a post HTTP request header contains 'Transfer-Encoding: chunked'
- Closed
- incorporates
-
UNDERTOW-994 ajp connection hangs if a post HTTP request header contains 'Transfer-Encoding: chunked'
- Resolved
- is incorporated by
-
JBEAP-8650 (7.0.z) Upgrade undertow from 1.3.27.Final to 1.3.28.Final
- Closed