[undertow-dev] Websocket: onMessage() called prior to onOpen()

Stuart Douglas sdouglas at redhat.com
Fri Jun 5 01:42:08 EDT 2015


Do you have a way to reproduce this?

Stuart

Guruprasad Nagaraj wrote:
> Wildfly version: 8.2.0.Final
> Undertow version: 1.1.0.Final
>
> Hi,
> I am using Undertow web sockets.
> A remote client (nopoll c client) attempts to open a websocket session;
> the session is opened and the client immediately sends a message.
> However, at the ServerEndpoint, the onMessage handler is called prior to
> the onOpen handler.
> My server side implementation rejects messages received prior to open
> and even forces a session close.
> The client retries the session, and sometimes it is successful i.e. I do
> see an open first and then followed by a message by the client.
>
> Is this an known issue?
> Sorry, I couldn’t find a way to search the mailing-list archives.
>
> Thanks and Best Regards,
> GPN
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list