Closed byteit101 closed 7 years ago
@byteit101 Pull request welcomed if you have found the solution!
Sorry, but I only have a sketchy workaround to avoid this bug by ignoring messages with a pipe in the first 6 characters
@byteit101 thank you for the nice report, did our fix rectify your problem ?
Just tested, and yes, it did. Thanks!
When a multipart message arrives, java callback is notified of the raw first to n-1 parts, then the processed full part at the end.
Test case:
I've also attached a sample dump & test websocket server to help illustrate, which can be run using:
or if you need ruby, download jruby.jar and run:
Once you have the server running, running the java client will connect on port 5555 and trigger the ruby server to dump the messages back to the java client.
The demo session dump is split into the following message sent 0.3 seconds apart:
Note that the java client prints out (truncated, length -- data)):
When I expected:
which correspond to websocket messages:
whereas it actually got: