varspool / Wrench

A simple PHP WebSocket implementation for PHP 7.1
Do What The F*ck You Want To Public License
596 stars 210 forks source link

Proposed fix for issues #61 and #80 #87

Closed emadruida closed 7 years ago

emadruida commented 8 years ago

No need to evaluate $firstRead for "Workaround Chrome behaviour". Just check that read bytes is 1 and try to continue reading even if this is not the first read in the loop.

1+ years in production conde using SSL WebSockets with this patch