The last zero-chunk in Transfer-encoding: chunked response can be missing when Undertow write-timeout is reached
Issue
- HTTP Long polling is implemented with asynchronous servlet API, the last chunk
0\r\n\r\n
will be missing when the polling interval is longer than Undertowwrite-timeout
. - Getting a
net::ERR_INCOMPLETE_CHUNKED_ENCODING
error in the browser console if the browser is chrome.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.