[Webkit-unassigned] [Bug 202401] REGRESSION (Safari 13): WebSocket payload is truncated when x-webkit-deflate-frame is used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 3 06:55:11 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=202401

--- Comment #3 from Volodymyr Sorokin <volodymyr.sorokin at grammarly.com> ---
I wasn't able to find a public working websocket server that supports 'permessage-deflate' extension.

But I created a simple server on java to reproduce the issue:

1) Clone it from https://github.com/vlsorokin/websocket-sandbox

2) Run server
> mvn compile exec:java

3) To run client open this jsfiddle in Safari 13: http://jsfiddle.net/sorrro/8b3yawod/

4) Click - Connect, Send short text, Send large text, Send short text
This will send to a websocket a random string of 10 characters, then a random string of 10,000 characters, then 10 characters again

5) You will notice an error in console saying: 'Failed to compress frame'

6) Server logs will indicate that the server has not received less than 10,000 characters

7) If you inspect traffic with Wireshark you may notice that in Safari 13, a large frame gets truncated to 4092 bytes and the second short message does not get sent.

At the same time, these steps work fine in Chrome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191003/c727effe/attachment-0001.html>


More information about the webkit-unassigned mailing list