SKPHP1989 / phpws

Automatically exported from code.google.com/p/phpws
0 stars 0 forks source link

Message length limit? #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a limit on the length of a message sent through the websocket server?

If I send 127 chars it works, if I add one more character it fails:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Using the demo client it and entering this plus on character causes the server 
to show to following error:
PHP Notice:  Undefined offset: 0 in 
/data/public_html/phpws/websocket.framing.php on line 214

Any ideas why this happens?

Cheers
Chris

Original issue reported on code.google.com by snork...@gmail.com on 30 Nov 2011 at 5:44

GoogleCodeExporter commented 8 years ago
Bug confirmed. Will look into this!

Original comment by ch...@devristo.com on 30 Nov 2011 at 5:34

GoogleCodeExporter commented 8 years ago
A fix has been pushed to git. Can you confirm this fixes your problem?

Cheers

Chris ;)

Original comment by ch...@devristo.com on 30 Nov 2011 at 5:40

GoogleCodeExporter commented 8 years ago
Dude that was quick!!! 

Tested and confirmed. Works a charm now. Thanks heaps.

Cheers
Chris! :p

Original comment by snork...@gmail.com on 1 Dec 2011 at 7:26

GoogleCodeExporter commented 8 years ago
Glad its fixed, didnt use long messages my self yet. But one roadblock is out 
of the way when I do ;)

Regards

Chris

Original comment by ch...@devristo.com on 1 Dec 2011 at 10:08