]
Stuart Douglas resolved WFLY-5931.
----------------------------------
Resolution: Rejected
Undertow has no such timeout, as far as I can see this is an apache issue not a Wildfly
one
HTTP connection is getting closed after 5 mins
----------------------------------------------
Key: WFLY-5931
URL:
https://issues.jboss.org/browse/WFLY-5931
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 9.0.1.Final
Environment: Wildfly 9.0.1 + Linux
Reporter: Rakesh Kumar
Assignee: Stuart Douglas
Priority: Critical
Fix For: 9.x.x TBD
HTTP connection is getting closed after 5 mins with Linux + Wildfly 9.0.1 and throws
broken pipe exception after the request is processed, It works fine in windows + Wildfly
9.0.1.
I tried to increase keepalive timeout using the following alternatives.
• Update values in httpd.conf from 300 seconds to 1500 seconds
• Add KeepAliveTimeout response header in standalone.xml
• Add header in response using “response.addHeader("Keep-Alive",
"timeout=180000");”
• Updated jsp to add ("Keep-Alive", "timeout=180000" ) in response
header.
None of the above alternatives worked.
Error message :
2015-10-23 18:46:47,250 ERROR [default task-29] [RequestServlet] Unknown exception
detected: java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) [rt.jar:1.7.0_45]
at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) [rt.jar:1.7.0_45]
at sun.nio.ch.IOUtil.write(IOUtil.java:148) [rt.jar:1.7.0_45]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:524) [rt.jar:1.7.0_45]