<div dir="ltr">You shouldn&#39;t need to be setting the content length manually with that API.<div><br></div><div>I agree with the exception, Stuart might have some thoughts on that. There was another discussion about hooking in different loggers to the default exception handler as well as an easier way to override it. This issue could be related to that?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 12:01 PM, Hicks, Matt <span dir="ltr">&lt;<a href="mailto:matt@matthicks.com" target="_blank">matt@matthicks.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, modifying my computation to do myString.getBytes(&quot;UTF-8&quot;).<wbr>length instead of myString.length resolved the issue.  The silent failing still has me concerned though.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 8, 2017 at 10:41 AM Hicks, Matt &lt;<a href="mailto:matt@matthicks.com" target="_blank">matt@matthicks.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-6363740265647437227gmail_msg">Well, I just added an IoCallback and now I&#39;m getting an error: Attempted to write 144780 bytes however content-length has been set to 144772<div class="m_-6363740265647437227gmail_msg"><br class="m_-6363740265647437227gmail_msg"></div><div class="m_-6363740265647437227gmail_msg">This, I think, raises both a question and an issue:</div><div class="m_-6363740265647437227gmail_msg"><br class="m_-6363740265647437227gmail_msg"></div><div class="m_-6363740265647437227gmail_msg">Question: Should I not be setting the Content-Length myself even when using exchange.getResponseSender().<wbr>send?</div><div class="m_-6363740265647437227gmail_msg">Issue: Seems like a bug that without an IoCallback the error is just absorbed and never logged anywhere.</div></div><br class="m_-6363740265647437227gmail_msg"><div class="gmail_quote m_-6363740265647437227gmail_msg"><div dir="ltr" class="m_-6363740265647437227gmail_msg">On Wed, Feb 8, 2017 at 10:35 AM Hicks, Matt &lt;<a href="mailto:matt@matthicks.com" class="m_-6363740265647437227gmail_msg" target="_blank">matt@matthicks.com</a>&gt; wrote:<br class="m_-6363740265647437227gmail_msg"></div><blockquote class="gmail_quote m_-6363740265647437227gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-6363740265647437227gmail_msg">I&#39;m having a very strange problem sending a generated HTML file back to the browser using `exchange.getResponseSender().<wbr>send(s)`.  It seems to work fine if the content is a short bit of text like &quot;Hello World&quot;, but the content is 144,772 bytes and if I use Curl to test it I get a 200 OK, but it says the Content-Length is 0 and no content comes back.  If I set the content to a short String like I said, then the Content-Length is properly set and the content comes back like expected.<div class="m_-6363740265647437227gmail_msg"><br class="m_-6363740265647437227gmail_msg"></div><div class="m_-6363740265647437227gmail_msg">Should I not be using `exchange.getResponseSender().<wbr>send` for large amounts of text?</div><div class="m_-6363740265647437227gmail_msg"><br class="m_-6363740265647437227gmail_msg"></div><div class="m_-6363740265647437227gmail_msg">I just updated to 1.4.10.Final hoping that it was a bug that was fixed since 1.4.8.Final, but it&#39;s still happening.</div><div class="m_-6363740265647437227gmail_msg"><br class="m_-6363740265647437227gmail_msg"></div><div class="m_-6363740265647437227gmail_msg">Any insights would be greatly appreciated.</div></div></blockquote></div></blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>