You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
While working on Hoa\WebSocket I ran into a weird issue where a particular browser instance of chrome was breaking the socket server for all the connected clients. Upon investigation, we realized that the browser was sending malformed (read incomplete) headers. Although couldn't figure out why but realized that it should not be the reason why socket server should break for everyone.
Eventually, we found the reason to be in _parse function of Hoa\Http at this line.
The header I was receiving had the last line clipped before : which caused index not available. An example header is:
Hi,
While working on
Hoa\WebSocket
I ran into a weird issue where a particular browser instance of chrome was breaking the socket server for all the connected clients. Upon investigation, we realized that the browser was sending malformed (read incomplete) headers. Although couldn't figure out why but realized that it should not be the reason why socket server should break for everyone.Eventually, we found the reason to be in
_parse
function ofHoa\Http
at this line.The header I was receiving had the last line clipped before
:
which caused index not available. An example header is:as you can see
Sec-WebSocket-Extensions
was missing. I think it is an important issue as one cannot control client behavior.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: