8000 socket: Raise libsoup's server-side WebSocket message limit by hsorbo · Pull Request #1267 · frida/frida-core · GitHub
[go: up one dir, main page]

Skip to content

socket: Raise libsoup's server-side WebSocket message limit - #1267

Merged
oleavr merged 1 commit into
mainfrom
libsoup-maxsize
Oct 19, 2026
Merged

oleavr merged 1 commit into
mainfrom
libsoup-maxsize

Conversation

@hsorbo
@hsorbo hsorbo commented Oct 19, 2026 •
Copy link
Copy Markdown
Member

Since 17.24.0, libsoup includes 2df34d95 which makes SoupServer cap the total size of each incoming WebSocket message at 128 KiB (max-total-message-size).
WebConnection sends messages of up to 256 KiB, so the receiving side drops any message over 128 KiB and closes the connection.

Large scripts sent to Gadget hit this. With a jailed iOS device, a script of 130,912 bytes or more makes create_script() fail with TransportError: the connection is closed.

Fix: set max-total-message-size to match max-incoming-payload-size. We set it through the GObject property, because the bundled VAPI doesn't expose it

Newer libsoup also limits the size of reassembled fragmented messages
through max-total-message-size. Set it to the same limit as the
incoming payload size when the property is available.
@oleavr
oleavr merged commit 418f472 into main Oct 19, 2026
65 of 78 checks passed
@oleavr
oleavr deleted the libsoup-maxsize branch October 19, 2026 18:49
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

Successfully merging this pull request may close these issues.

2 participants

0