Empty reply is seen from EAP 7 Undertow if sendRedirect is called after setContentLength

Solution Unverified - Updated -

Issue

  • We see an empty reply from JBoss in some cases. For instance, errors like the following from curl:
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
  • For some requests, our httpd proxy logs an end of file error trying to get a response from EAP 7:
[proxy_http:error] [pid 850109:tid 140275963909888] (70014)End of file found: [client 127.0.0.1:64031] AH01102: error reading status line from remote server 127.0.0.1:8443
  • We note this occurs when response.sendRedirect is called after response.setContentLength.

Environment

  • 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