codeminders / socket.io-server-java

Java Backend for Socket.IO (http://socket.io/)
36 stars 18 forks source link

Fix incorrect parsing of multiple packets in payload #15

Closed SQReder closed 5 years ago

SQReder commented 5 years ago

Current implementation of payload parsing fails when receive payload with multiple packets in it. This commit fix it.

Example (slightly synthetic, but show the idea): Receive payload 10:40/stream,1:227:42/stream,["SET_STREAM_ID"]

Expected behaviour: Process all 3 packets

Actual behaviour: Exception SocketIOProtocolException with message "No packet length defined" thrown

SQReder commented 5 years ago

Cool. When will you update package on central?