[Webkit-unassigned] [Bug 227030] New: [iOS 15 beta] WebSocket Message too long when message is 1mb or larger

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 15 08:46:16 PDT 2021


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

            Bug ID: 227030
           Summary: [iOS 15 beta] WebSocket Message too long when message
                    is 1mb or larger
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: iPhone / iPad
                OS: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lishid at gmail.com

Created attachment 431441

  --> https://bugs.webkit.org/attachment.cgi?id=431441&action=review

Steps to reproduce

Overview: Starting in iOS 15 Beta, whenever a WebSocket receives a message of size 1,048,549 bytes or more, even if from multiple frames, it will terminate the connection with error 1009 (Message too big).
This wasn't the case in any previous builds.

Steps to reproduce:
- Create a WebSocket echo server using any language (A good sample can be found at https://www.npmjs.com/package/ws#simple-server)
- Using the remote debugger console, create a WebSocket and send a short message, observe that the message is sent back.
- Send a message of size 1,048,549 or larger, observe that the message is sent, and the connection is immediately terminated with "The operation couldn't be completed (kNWErrorDomainPOSIX error 40 - Message too long)"
- Observe from the server that the client disconnected with error 1009 (Message too long).

I find that 1mb is quite a low limit, if that's intended to limit memory consumption. For any use cases involving sending significant amount of data, this would need to be worked around by concatenating multiple messages, which will end up consuming a lot more memory anyway.

-- 
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/20210615/6c5f2f27/attachment-0001.htm>


More information about the webkit-unassigned mailing list