ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
917 stars 374 forks source link

Handshake will fail if sent with more than one packet. #46

Open Xaraknid opened 9 years ago

Xaraknid commented 9 years ago

The handshake will never happens if the handshake headers is sent with more than one packet.

Normal browser will close the connection after their internal timeout.

Also the handshake need a timeout server side otherwise can lead to malicious user to overload server with multiple open connection will cause ressource exhaustion.