You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested this using uWebsockets 20.2.0 as well, same version of Node (16.12.0), using Safari 15.1 on MacOS Monterey as the client.
The same issue happens in Chrome as well if compression is set to (uWS.DEDICATED_COMPRESSOR_3KB | uWS.DEDICATED_DECOMPRESSOR), so the client doesn't matter here. It's just using these options as the compression that causes the issue.
I'm still getting this when a 2nd message is sent:
disconnected user: 1006 Received too big message, or other inflation error
It doesn't seem to happen for all messages I send for some reason, but it's consistently reproducible when you send the message "1111111" twice; the 2nd message will always fail and show the above 1006 reason for closing the websocket.
Activity
jdelk commentedon Oct 28, 2021
Here's the full code that still reproduces it:
Tested this using uWebsockets 20.2.0 as well, same version of Node (16.12.0), using Safari 15.1 on MacOS Monterey as the client.
The same issue happens in Chrome as well if compression is set to
(uWS.DEDICATED_COMPRESSOR_3KB | uWS.DEDICATED_DECOMPRESSOR), so the client doesn't matter here. It's just using these options as the compression that causes the issue.I'm still getting this when a 2nd message is sent:
disconnected user: 1006 Received too big message, or other inflation errorIt doesn't seem to happen for all messages I send for some reason, but it's consistently reproducible when you send the message "1111111" twice; the 2nd message will always fail and show the above
1006reason for closing the websocket.[-]Compression broken in Safari 15[/-][+]DEDICATED_DECOMPRESSOR is broken[/+]jdelk commentedon Oct 31, 2021
Thanks for looking at this so quickly
After retrying the same code I used above, I get the error
Segmentation fault (core dumped)after sending a few messages (of any length).The client also never receives any message sent from the server.
Using uWebsockets 20.3.0 on Node.js 16.12.0
I've tried with the following compression options:
compression: uWS.DEDICATED_COMPRESSOR_3KB,compression: (uWS.DEDICATED_COMPRESSOR_3KB | uWS.DEDICATED_DECOMPRESSOR),It seems that compression is broken completely now, if I use
uWS.DISABLEDit works fine.jdelk commentedon Oct 31, 2021
v20.4.0 works perfectly
Thanks for fixing it so quickly.
Love all the work you're doing with uWS
fix(server): address deflate review findings from bots
fix(server): address deflate review findings from bots