Highlighted

Websockets Size Issue

New Here ,
Apr 25, 2016

Copy link to clipboard

Copied

I have a Coldfusion 10 Websockets channel that streams data every 2 seconds. This has worked perfectly for some time, however I have now approximately doubled the amount of data being sent and I have problems when it comes to Chrome and Internet Explorer – they both come up with the following errors -

Websocket connecttion to 'ws://mywebsite.com' failed: Invalid frame header

Uncaught TypeError: Cannot set property 'readyState' of undefined

Everything works perfectly on Firefox.

I am assuming the errors relate to the size of the packets and that they are not correctly specified in the header, since if I reduce the amount of data slightly everything works fine. I have increased the “Max Data Size” for websockets in Coldfusion Administrator but this does not fix the problem.

It does mention here: http://www.adobe.com/devnet/coldfusion/articles/using-websocket.html  that there is a default packet size of 8192 bytes (8KB) and if messages are larger they need to be tuned accordingly - but it does not say how!

Any help or advice would be greatly appreciated.

Thanks.

Views

303

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Websockets Size Issue

New Here ,
Apr 25, 2016

Copy link to clipboard

Copied

I have a Coldfusion 10 Websockets channel that streams data every 2 seconds. This has worked perfectly for some time, however I have now approximately doubled the amount of data being sent and I have problems when it comes to Chrome and Internet Explorer – they both come up with the following errors -

Websocket connecttion to 'ws://mywebsite.com' failed: Invalid frame header

Uncaught TypeError: Cannot set property 'readyState' of undefined

Everything works perfectly on Firefox.

I am assuming the errors relate to the size of the packets and that they are not correctly specified in the header, since if I reduce the amount of data slightly everything works fine. I have increased the “Max Data Size” for websockets in Coldfusion Administrator but this does not fix the problem.

It does mention here: http://www.adobe.com/devnet/coldfusion/articles/using-websocket.html  that there is a default packet size of 8192 bytes (8KB) and if messages are larger they need to be tuned accordingly - but it does not say how!

Any help or advice would be greatly appreciated.

Thanks.

Views

304

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 25, 2016 0

Have something to add?

Join the conversation