-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
websocket: Remove unnecessary condition in frame parsing
When entering (_buffer.length() + data.size() >= 2) condition _buffer is guaranteed to have size less than 2. Initial condition is that buffer is empty and it can be appended only when the following is satisfied: _buffer.length() + data.size() < 2.
- Loading branch information
Showing
1 changed file
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters