<div dir="ltr">I am using undertow through immutant [org.immutant/immutant &quot;2.x.incremental.148&quot;] and am receiving the following exceptions:<br><br><div><font face="times new roman, serif"><b>17:27:47.670 [XNIO-2 task-4] DEBUG <a href="http://io.undertow.request.io">io.undertow.request.io</a> - UT005013: An IOException occurred</b></font></div>
<div><font face="times new roman, serif"><b>org.xnio.channels.FixedLengthUnderflowException: 16095 bytes remaining</b></font></div><div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:204) ~[undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.2.0.Final.jar:3.2.0.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:60) ~[undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1476) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1465) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.Connectors.executeRootHandler(Connectors.java:184) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_05]</b></font></div><div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_05]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]</b></font></div><div><font face="times new roman, serif"><b><br></b></font></div>
<div><font face="times new roman, serif"><b>17:27:49.912 [XNIO-2 task-6] DEBUG <a href="http://io.undertow.request.io">io.undertow.request.io</a> - UT005013: An IOException occurred</b></font></div><div><font face="times new roman, serif"><b>io.undertow.server.TruncatedResponseException: null</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.protocol.http.HttpResponseConduit.truncateWrites(HttpResponseConduit.java:665) ~[undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:206) ~[undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.2.0.Final.jar:3.2.0.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:60) ~[undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1476) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1465) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at immutant.web.undertow$handle_request.invoke(undertow.clj:123) [na:na]</b></font></div><div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at immutant.web.undertow$create_http_handler$reify__1051.handleRequest(undertow.clj:130) [na:na]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.7.Final.jar:1.0.7.Final]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_05]</b></font></div><div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_05]</b></font></div>
<div><font face="times new roman, serif"><b><span class="" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]</b></font></div><div><br></div><div><font face="arial, helvetica, sans-serif">I am making a GET request using Google&#39;s xhrio library, and the request works fine when I use a service such as Postman. However, when I make several simultaneous GET requests in javascript, undertow throws these exceptions and returns an empty response (<span style="color:rgb(255,0,0);line-height:12px;white-space:pre-wrap">net::ERR_EMPTY_RESPONSE</span><span style="color:rgb(255,0,0);line-height:12px;white-space:pre-wrap"> </span><span style="line-height:12px;white-space:pre-wrap"><font color="#000000">in chrome).</font></span></font></div>
<div><span style="line-height:12px;white-space:pre-wrap"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="line-height:12px;white-space:pre-wrap"><font color="#000000" face="arial, helvetica, sans-serif">I&#39;m wondering what might be causing these issues, and if there are certain HTTP headers I might be missing or need to remove from my requests. It looks like the requests are all getting cancelled when another request is received on the same channel, but it must be possible to fire multiple asynchronous requests so I must be missing something.</font></span></div>
<div><span style="line-height:12px;white-space:pre-wrap"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);line-height:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Thanks!</font></span></div>
<div><span style="color:rgb(0,0,0);line-height:12px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Tom </font></span></div><div><br></div></div>