wkjagt / Extendible-Web-Socket-Server

Extendible websockets server in PHP, including hooks.
36 stars 9 forks source link

Status line contains embedded null #1

Open HardlyMirage opened 13 years ago

HardlyMirage commented 13 years ago

In Chrome 12, I tried setting up the example, when doing a sendToAll, I get the following error on the front-end:

Status line contains embedded null

A quick google search yields this on a java websocket implementation - Line 443

// The caller isn't prepared to deal with null bytes in status // line. WebSockets specification doesn't prohibit this, but HTTP // does, so we'll just treat this as an error.

I tried changing the null character in the WSHelper::wrap function to something else, but I am unable to reconnect because of all the handshake fails.