Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSV1 how to prevent server crash #1191

Closed
GREEB opened this issue Aug 22, 2017 · 3 comments
Closed

RSV1 how to prevent server crash #1191

GREEB opened this issue Aug 22, 2017 · 3 comments

Comments

@GREEB
Copy link

GREEB commented Aug 22, 2017

Hey
How can i prevent this from crashing my servers? and what is causing this?

0|a   | [FATAL] Error: RSV1 must be clear
0|a   |     at Receiver.getInfo (/opt/a/gameservers/6984/node_modules/ws/lib/Receiver.js:191:18)
0|a   |     at Receiver.startLoop (/opt/a/gameservers/6984/node_modules/ws/lib/Receiver.js:153:16)
0|a   |     at Receiver.add (/opt/a/gameservers/6984/node_modules/ws/lib/Receiver.js:139:10)
0|a   |     at Socket._ultron.on (/opt/a/gameservers/6984/node_modules/ws/lib/WebSocket.js:142:22)
0|a   |     at emitOne (events.js:96:13)
0|a   |     at Socket.emit (events.js:191:7)
0|a   |     at Socket.Readable.read (_stream_readable.js:383:10)
0|a   |     at flow (_stream_readable.js:763:34)
0|a   |     at resume_ (_stream_readable.js:745:3)
0|a   |     at _combinedTickCallback (internal/process/next_tick.js:80:11)
@lpinca
Copy link
Member

lpinca commented Aug 22, 2017

Add a listener for the 'error' event.

ws.on('error', (err) => handleError(err));

This error is fired when the rsv1 bit is flagged and the permessage-deflate extension is disabled. The client should not set it if the server does not support permessage-deflate.

@GREEB
Copy link
Author

GREEB commented Aug 22, 2017

it was an error on our side, sorry about that!

@lpinca
Copy link
Member

lpinca commented Aug 22, 2017

Ok, closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants