Fix issue #847#849
Conversation
|
Can you please explain what's happening in the Issue847Test? Why not simply send a large message and test it was received correctly? |
I was not able to reproduce with one single tcp packet. The relevant check to prevent this is translateSingleFrameCheckPacketSize, which ensures the buffer is big enough |
| */ | ||
| private TranslatedPayloadMetaData translateSingleFramePayloadLength(ByteBuffer buffer, Opcode optcode, int oldPayloadlength, int maxpacketsize, int oldRealpacketsize) throws InvalidFrameException, IncompleteException, LimitExceededException { | ||
| int payloadlength = oldPayloadlength, realpacketsize = oldRealpacketsize; | ||
| int payloadlength = oldPayloadlength, |
There was a problem hiding this comment.
Are you sure that fixed the code style issue? 🤔 Probably meant to put them in separate declarations
There was a problem hiding this comment.
Does the magic ;) (only when we are in a non strict mode according to the documentation)
Description
This PR fixes the issue introduced with #805
Related Issue
Fixes #847
Motivation and Context
Bug fix
How Has This Been Tested?
Added a new test
Types of changes
Checklist: