Repository navigation
fix(web_socket): name ws_max_receive_size when a message from Chrome exceeds it - #739
Merged
Merged
Conversation
…exceeds it websocket-driver closes the connection with code 1009 when a message is over max_length, and Ferrum raised a DeadBrowserError that said the browser crashed or was closed. The close reason now names ws_max_receive_size and its value, for the failing command and every command after it.
route
force-pushed
the
fix/oversized-message-error
branch
from
November 27, 2026 17:32
4839ea2 to
9dfca08
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A CDP message over
:ws_max_receive_size(64 MiB by default) makes websocket-driver close the connection with code 1009, "WebSocket frame length too large". Ferrum dropped that reason and raisedDeadBrowserErrorwith its generic message, which says the browser crashed or was closed, and so did every later command on that browser. Nothing pointed at the limit or the option that raises it.With Chrome sending a string result twice under deep serialization,
evaluatenow hits the default limit at about 32 MiB, so this is easier to run into than before.WebSocket#on_closenow sets the close reason when the code is 1009, and the error reads: