[undertow-dev] Sender not flushing?

Hicks, Matt matt at matthicks.com
Wed Dec 7 15:17:43 EST 2016


I've got a fairly simplistic scenario (using 1.4.6.Final) where I'm
building an HTML String and then sending it to my exchange:

exchange.getResponseHeaders.put(Headers.CONTENT_LENGTH, html.length)
exchange.getResponseHeaders.put(Headers.CONTENT_TYPE, "text/html")
exchange.getResponseSender.send(html)

However, very often the last one to three characters don't seem to be
received by the browser.  I've logged the HTML before outputting so I know
that I'm adding the "</html>" at the end, but in order to get everything
properly to the browser I have to append a few spaces to the end of my HTML
so it doesn't get clipped.  Is there something I'm missing that needs to be
done to make sure the content is flushed appropriately?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20161207/643df0ac/attachment.html 


More information about the undertow-dev mailing list