<div dir="ltr">I&#39;m using a WildFly 8.0.1 nightly and can easily recreate this error:<div><br></div><div><div>14:01:30,134 ERROR [io.undertow.request] (default task-18) Blocking request failed HttpServerExchange{ GET /ottrservices/recentpatients}: java.lang.RuntimeException: java.io.IOException: Broken pipe</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)</div><div><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]</div>
<div><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]</div><div><span class="" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]</div>
<div>Caused by: java.io.IOException: Broken pipe</div><div><span class="" style="white-space:pre">        </span>at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_51]</div><div><span class="" style="white-space:pre">        </span>at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_51]</div>
<div><span class="" style="white-space:pre">        </span>at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) [rt.jar:1.7.0_51]</div><div><span class="" style="white-space:pre">        </span>at sun.nio.ch.IOUtil.write(IOUtil.java:51) [rt.jar:1.7.0_51]</div>
<div><span class="" style="white-space:pre">        </span>at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487) [rt.jar:1.7.0_51]</div><div><span class="" style="white-space:pre">        </span>at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:150) [xnio-nio-3.2.1.Final.jar:3.2.1.Final]</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:529)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.conduits.ChunkedStreamSinkConduit.flush(ChunkedStreamSinkConduit.java:251)</div>
<div><span class="" style="white-space:pre">        </span>at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.1.Final.jar:3.2.1.Final]</div><div><span class="" style="white-space:pre">        </span>at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100)</div>
<div><span class="" style="white-space:pre">        </span>at org.xnio.channels.Channels.flushBlocking(Channels.java:63) [xnio-api-3.2.1.Final.jar:3.2.1.Final]</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:623)</div>
<div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)</div>
<div><span class="" style="white-space:pre">        </span>... 9 more</div><div><br></div><div><br></div><div>For this particular screen, we do send a lot of data back and forth via REST requests. Some of it can be large.</div><div>
<br></div><div>I have this setting in my http-listener:</div><div><div>             &lt;http-listener name=&quot;default&quot; socket-binding=&quot;http&quot; max-buffered-request-size=&quot;10485760&quot;  max-header-size=&quot;7864320&quot;</div>
<div>allow-equals-in-cookie-value=&quot;true&quot;/&gt;</div></div><div><br></div><div>yes I picked those large values just to see if they would work and they haven&#39;t. I see from this page:</div><div><a href="http://undertow.io/documentation/core/listeners.html">http://undertow.io/documentation/core/listeners.html</a><br>
</div><div><br></div><div>That there is a MAX_ENTITY_SIZE in Undertow but I can&#39;t seem to get Wildfly to recognize it -- when I try max-entity-size=&quot;something&quot; in the http-listener tag, I get a validation error.</div>
<div><br></div><div>Any ideas?</div><div><br></div><div><br></div><div><br></div>-- <br>Mike Hostetler<br><a href="http://mike.hostetlerhome.com/">http://mike.hostetlerhome.com/</a><br><br>
</div></div>