Sender not flushing?
by Hicks, Matt
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?
8 years, 1 month
two questions
by Pere Ferrera
Hi there,
I have two questions: 1) How can I configure the underlying socket
parameter SO_LINGER using the Undertow API ? and 2) Is there something that
I can use to rate-limit requests issued to an Undertow server ? (something
similar to the DoS Filter in Jetty)
Thanks,
8 years, 2 months
start listener on random port
by Sascha Sadat-Guscheh
hello undertow developers!
is there a way to start a http listener on a random free port? i have a test suite that runs multithreaded so each untertow server uses a random port, that i get like this:
new ServerSocket(0).getLocalPort()
sometimes i run into a race condition when a different process grabs the port before undertow listens on it. so a possible solution would be to just let undertow assign the port, and then ask it what port its listening on. (or pass the socket instead of the port number to undertow)
is that a worthwile feature? should i try to submit a pr that does that? or is it already possible?
thanks!
8 years, 2 months