-
Bug
-
Resolution: Done
-
Major
-
1.3.22.Final
-
None
-
None
The 'complete' method of a WebSocketCallback will occasionally be called twice when used with the Websockets helper class.
I discovered this by passing an AtomicBoolean as the context and doing a compareAndSet(false,true) inside the complete call.
The lower parts of the stack trace are:
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel$1.run(AbstractFramedStreamSinkChannel.java:231) at io.undertow.server.protocol.framed.AbstractFramedChannel$3.run(AbstractFramedChannel.java:228) at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:580) at org.xnio.nio.WorkerThread.run(WorkerThread.java:464)