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.
On Fri, 25 Oct 2019 at 23:04, Alexey Egorov <electreg(a)list.ru> wrote:
is there any documentation on what interfaces are thread-safe and what
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?
undertow-dev mailing list