The last zero-chunk in Transfer-encoding: chunked response can be missing when Undertow write-timeout is reached

Solution Verified - Updated -

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 Undertow write-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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content