title: Uploading large files error to wildfly
body: <p>I try to upload large files(400mb+) to wildfly 8.1 and i get an IOException but i dont encounter any exception with the same conditions when using jboss 7 server: </p>
  
  <p>Exception:</p>
  
  <pre><code>Blocking request failed HttpServerExchange{ POST /ehub/contentstore/categories/maincategory/file/create}: java.lang.RuntimeException: java.io.IOException: Broken pipe
      at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
  Caused by: java.io.IOException: Broken pipe
      at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_51]
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_51]
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) [rt.jar:1.7.0_51]
      at sun.nio.ch.IOUtil.write(IOUtil.java:51) [rt.jar:1.7.0_51]
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487) [rt.jar:1.7.0_51]
      at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:150) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]
      at io.undertow.server.protocol.http.HttpResponseConduit.processWrite(HttpResponseConduit.java:212)
      at io.undertow.server.protocol.http.HttpResponseConduit.flush(HttpResponseConduit.java:629)
      at io.undertow.conduits.FinishableStreamSinkConduit.flush(FinishableStreamSinkConduit.java:83)
      at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
      at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100)
      at org.xnio.channels.Channels.flushBlocking(Channels.java:63) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
      at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:625)
      at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
      at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
  </code></pre>
  
  <p>I increased the max-post-size but it didnt work.</p>
  
  <p>standalone.xml :</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:undertow:1.1"&gt;
          &lt;buffer-cache name="default"/&gt;
          &lt;server name="default-server"&gt;
              &lt;http-listener name="default" socket-binding="http" max-post-size="974247881"/&gt;
              &lt;host name="default-host" alias="localhost"&gt;
                  &lt;location name="/" handler="welcome-content"/&gt;
                  &lt;filter-ref name="server-header"/&gt;
                  &lt;filter-ref name="x-powered-by-header"/&gt;
              &lt;/host&gt;
          &lt;/server&gt;
          &lt;servlet-container name="default"&gt;
              &lt;jsp-config/&gt;
          &lt;/servlet-container&gt;
          &lt;handlers&gt;
              &lt;file name="welcome-content" path="${jboss.home.dir}/welcome-content"/&gt;
          &lt;/handlers&gt;
          &lt;filters&gt;
              &lt;response-header name="server-header" header-name="Server" header-value="WildFly/8"/&gt;
              &lt;response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/&gt;
          &lt;/filters&gt;
  &lt;/subsystem&gt;
  </code></pre>