Skip to content

Conversation

zhaolianwang
Copy link
Contributor

@zhaolianwang zhaolianwang commented Sep 26, 2018

#596
reason:
WebSocketTransport line 144 : Packet packet = new Packet(PacketType.MESSAGE); //subType =null
PacketEncoder line 288: byte subType = toChar(packet.getSubType().getValue()); //NullPointerException

fix
WebSocketTransport
Packet packet = new Packet(PacketType.MESSAGE);
packet.setSubType(PacketType.DISCONNECT);

mrniko#596

reason:
WebSocketTransport line 144 : Packet packet = new Packet(PacketType.MESSAGE); //subType =null
PacketEncoder line 288: byte subType = toChar(packet.getSubType().getValue()); //NullPointerException

fix
WebSocketTransport
Packet packet = new Packet(PacketType.MESSAGE);
packet.setSubType(PacketType.MESSAGE);
@Ben-Mark
Copy link

did the pull request fix the memory leak issue?
seconds question, was it tested?

Thanks in advance,
Ben

@wilddylan
Copy link

@Ben-Mark Tested!

@mrniko mrniko added this to the 1.7.17 milestone Oct 20, 2018
@mrniko mrniko added the bug label Oct 20, 2018
@mrniko mrniko merged commit 446c2c5 into mrniko:master Oct 20, 2018
@mrniko
Copy link
Owner

mrniko commented Oct 20, 2018

Thanks for contribution!

bot2b pushed a commit to bot2b/netty-socketio that referenced this pull request Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants