Issue #3290 websocket onOpen states

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-01-24 09:48:30 +11:00
parent 0b3262e16c
commit 5f20651d06
2 changed files with 2 additions and 2 deletions

View File

@ -398,8 +398,8 @@ public class WebSocketChannel implements IncomingFrames, FrameHandler.CoreSessio
LOG.debug("ConnectionState: Transition to CONNECTED");
// Open connection and handler
channelState.onOpen();
handler.onOpen(this);
channelState.onOpen();
if (!demanding)
connection.demand(1);

View File

@ -98,7 +98,7 @@ public class WebSocketChannelState
public boolean isOutputOpen()
{
State state = getState();
return (state==State.OPEN || state==State.ISHUT);
return (state==State.CONNECTED || state==State.OPEN || state==State.ISHUT);
}
public CloseStatus getCloseStatus()