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 week, 3 days
Correctly shutting down a websocket handler
by Robin Anil
When a client disconnects, I see that onClose is not being fired. The only
way this seems to be firing if client sents a close frame.
Is there any way to detect disconnection and immediately close all the
opened resources.
Robin
Robin Anil | Software Engineer
2 years, 5 months
thread-safety of undertow classes
by Alexey Egorov
Hello,
is there any documentation on what interfaces are thread-safe and what isn't?
As I understand it (please correct me if I'm wrong):
1. HttpServerExchange is not thread-safe (dispatch should be used to serialize access to it);
2. WebSocketChannel is thread-safe, so is it OK to call suspendReceives/resumeReceives from different threads.
What about other interfaces?
Thanks.
6 years, 4 months
Async APIs?
by Pavel Shirshov
Hi guys,
Could you give me a hint if there is a way to write asynchronous handlers?
So, I have my own asynchronous runtime (namely ZIO) and I wish undertow's
worker thread to do something while it's waiting for request completion
after a `dispatch` in my handler.
Is there an API allowing me to return a Future or undertow's IOFuture so I
may write an adaptor for my primitives?..
>From what I can see there is that zero-arg `.dispatch()` method which just
changes internal flag. So, from what I can understand I may just set that
flag and then complete my request totally asynchronously. Though that
method is marked deprecated without an alternative - other versions also
wait for a `Runnable`.
--
Thanks,
Pavel
6 years, 4 months