Creating a websocket proxy with undertow
by Marc Boorshtein
Using the 1.4 series, I'm trying to handle upgrade and websockets. Looking
at a few examples and the code I think what I need to do is:
1. add the WebSocketServlet to the right path
2. implement WebSocketConnectionCallback that will call my remote ws://
server
Am I on the right track? I haven't found an example of doing this with
undertow but found something similar with jetty (
https://github.com/chipster/chipster-web-server/blob/master/src/main/java...)
but I havne't found the same thing for undertow so any pointers would be
appreciated.
Thanks
Marc Boorshtein
5 days, 15 hours
Issue with Undertow Client and SSL
by Thomas Segismont
Hi,
Openshift Origin uses Hawkular Metrics to store node and container data. In
this scenario, Hawkular Metrics calls the Kubernetes master server over
HTTPS to validate the client identity. This is implemented with Undertow
Client, as part of a ServletExtension (inside Wildfly 10) [1]. Works fine
in development and testing.
Now the Openshit team sees errors in the logs [2][3]. I couldn't reproduce
yet. Errors come in pair, first the "UT005001: An exception occurred
processing the request: java.lang.IllegalStateException: XNIO000017: Buffer
was already freed", and just after "XNIO001007: A channel event listener
threw an exception: java.lang.NullPointerException".
Does that ring a bell? I haven't been able to find a starting point by
looking into the source the code.
Thanks
--
Thomas Segismont
JBoss ON Engineering Team
[1] https://git.io/vrNyP
[2] https://issues.jboss.org/browse/HWKMETRICS-408
[3] https://issues.jboss.org/secure/attachment/12405779/hawkular.log
1 month
Undertow pending/blocking requests when loading static resources
by Olivier Tonglet
Hi everyone,
This question is about a Spring Boot application running on an embedded Undertow.
Once the application is deployed, serving some resources may randomly block. The requests to grab them stay pending. When refreshing the page, it may work or block on another resource.
Besides this: refresh (f5) and force refresh (ctrl+f5) have the same outcome. Issue arise in multiple web browsers (Chrome, Edge, FF). No errors are logged back or front-end side.
Since resources are sometimes served properly we can say that static resource auto discovery by the Spring Boot container works and that resources are not blocked by security filters.
Switching to an embedded Tomcat fixes the issue.
Could anyone help me figure why Undertow would behave like this ?
1 year, 11 months