[Webkit-unassigned] [Bug 227030] REGRESSION (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 22:06:19 PDT 2021


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

Steve Dunham <dunhamsteve at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dunhamsteve at gmail.com

--- Comment #9 from Steve Dunham <dunhamsteve at gmail.com> ---
A few more details - I wrote a websocket echo server in Go (gorilla/websocket) to help Licat diagnose this. The client was an iPad Pro with iOS 15.0 (19A5261w). The attached jpeg reflects my testing.

In my initial test, I had the server relay the message as-is. If it was larger than 1048576 bytes, the server received the message, sent the response, and got an EPIPE.  Via the remote dev tools, MobileSafari reported the following and closed the connection:

[Error] WebSocket connection to 'ws://arbol.local:8080/echo' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 40 - Message too long)

I then adjusted the server code to fragment the message into maximum 512kb fragments. After sending the last fragment of a 1048577 byte message, the server received a 1009 error and MobileSafari didn't register any response or error (looking at the network pane in the remote dev tools). At that point, MobileSafari thought the connection was still open (readyState = 1) and let me send messages without error, even after I killed the server.

The same testing on dev console in Safari Technology Preview on Big Sur worked flawlessly. (The messages were received by the server, sent back to the browser, and logged.)

-- 
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/20210616/44cc1b40/attachment.htm>


More information about the webkit-unassigned mailing list