Questions tagged [undertow]

Undertow is a high performance non-blocking webserver that is the new web server in Red Hat's WildFly.

Website: http://undertow.io/

526 questions
5
votes
1 answer

How to add cookies to Undertow's ClientRequest?

final ClientRequest request = new ClientRequest(); request.setMethod(new HttpString(requestMethod)); request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, "chunked"); connection.sendRequest(request, new…
theAnonymous
  • 1,701
  • 2
  • 28
  • 62
5
votes
0 answers

Spring Boot in Docker container too long response time

I need to run HTTP REST API (Spring Boot application with embedded Undertow server) in Docker container, but when I'm running container and loading it with benchmark I'm getting too long response time (<1000ms), but when I run my application just…
Anar Sultanov
  • 3,016
  • 2
  • 17
  • 27
5
votes
1 answer

How do I configure Undertow handlers to support proper rewriting for SPA bookmarking?

I am trying to configure JBoss EAP 7 (via Undertow) to properly rewrite any SPA URLS back to the SPA's index.html using Undertow handlers. Unfortunately, my API is located at /api, so I need to let any requests pass through which start with…
Mark
  • 1,312
  • 1
  • 16
  • 33
5
votes
1 answer

Java REST threads are in RUNNABLE state forever in wildfly 10.0

in our production server I found a strange behaviore where the REST POST threads sometimes hangs or stuck and remain in RUNNABLE state for ever in method sun.nio.ch.PollArrayWrapper.poll0(Native Method) after some days the wildfly app server become…
Samy Omar
  • 800
  • 14
  • 29
5
votes
0 answers

Serve static content(Single page application) using Wildfly

I need to serve static content outside of WAR using the Wildfly application server. I setup
5
votes
1 answer

undertow webserver not binding to remote address

I'm testing out the undertow 2.0.0.Alpha1 webserver. When I run it locally it works and returns Hello World when I go to localhost:80. I then deploy the webserver on a remote server and go to remote_ip:80 but I get no response back. If I run curl -i…
Hooli
  • 1,135
  • 3
  • 19
  • 46
5
votes
2 answers

Implement an Undertow reverse proxy that behaves like nginx

For development purposes, not everyone can install nginx on their machines (like our developers on Windows environments), but we want to be able to do a reverse proxy that behaves like nginx. Here's our very specific case: we have a spring boot…
Raul G
  • 473
  • 1
  • 6
  • 18
5
votes
3 answers

Initial amount of memory to run a Spring Boot application

Is there any initial amount of memory I should set to run a Spring Boot application? For example, to run a embedded Tomcat/Undertow application we could set a typical amount of memory for -Xms and -Xmx java options. How can I find out which values…
Carlos Alberto
  • 7,761
  • 13
  • 52
  • 72
5
votes
0 answers

How do you shutdown an embedded Undertow application?

In the Undertow documentation, the following example is presented as a very simple server: public class HelloWorldServer { public static void main(final String[] args) { Undertow server = Undertow.builder() …
stepanian
  • 11,373
  • 8
  • 43
  • 63
5
votes
1 answer

How to Pass Object from ContainerRequestFilter to Resource

How can/should I pass an object from a ContainerRequestFilter to a (post-matching) resource in (JAX-RS) Resteasy version 3.0.11 that has undertow embedded and uses Guice?
Ari
  • 4,121
  • 8
  • 40
  • 56
5
votes
0 answers

Compojure handler friend/authenticate eats body of POST request

How can I safely get the content of the :body InputStream from compojure? See related but different question for background. I'm trying to authenticate my ring routes with Friend using compojure handler/site but when I try to read the :body from an…
sventechie
  • 1,859
  • 1
  • 22
  • 51
5
votes
1 answer

undertow proxy dumping request and response bodies

To use undertow as a proxy server, which tracks all traffic (required for debugging purposes), I'm currently using a snippet like this: Undertow.builder() .addHttpListener(8080, null) .setHandler( Handlers.requestDump( …
5
votes
2 answers

Enabling HTTPS in Undertow

We have a working Apache mod_ssl configuration. I want to enable HTTPS support for Undertow, so that it listens for both http and https, thus obviating the need for Apache. I've looked into Undertow's javadocs. The Undertow.Builder class has two…
siphiuel
  • 3,480
  • 4
  • 31
  • 34
5
votes
1 answer

How to send a asynchronous response in an Undertow HttpHandler

I am looking for an example that shows how you write the Response in an undertow HttpHandler asynchronously? The problem is that when HttpServerExchange.endExchange is called the Response is flushed. My sample HttpHandler uses the rx-java library…
reikje
  • 2,850
  • 2
  • 24
  • 44
5
votes
1 answer

Wildfly / Undertow : Multiple aliases for one host

In standalone/configuration/standalone-full.xml, I've declared the following host, that works When I try to add another alias, I'm given Error 404.
user1930502
1 2
3
35 36