ratchetphp / RFC6455

I/O agnostic WebSocket Protocol
MIT License
218 stars 38 forks source link

Update development deps and speed up frame processing #36

Closed mbonneau closed 4 years ago

mbonneau commented 4 years ago

This drops the development dependency for react/http and bumps react/socket to the latest version.

This change did caused issues with processing lots of small frames during autobahn testing (specifically 9.3.1).

The frame processing has been reworked to peek ahead and figure out the frame sizes and only process the whole frame once it is in the buffer. A large memory copy has also been bypassed making things much faster when dealing with large buffers of small frames.