In general anything that is designed to be used on a 'per request' manner
is not thread safe, and had off needs to be done with dispatch() to make
sure only a single thread is active at a time.
Anything that is expected to be used concurrently or by multiple requests
such as websocket or HTTP/2 channels are thread safe.
Stuart
On Fri, 25 Oct 2019 at 23:04, Alexey Egorov <electreg(a)list.ru> wrote:
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.
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev