Skip to content

[pull] trunk from SeleniumHQ:trunk - #902

Merged
pull[bot] merged 2 commits into
adamlaska:trunkfrom
SeleniumHQ:trunk
Aug 18, 2026
Merged

[pull] trunk from SeleniumHQ:trunk#902
pull[bot] merged 2 commits into
adamlaska:trunkfrom
SeleniumHQ:trunk

Conversation

@pull

@pull pull Bot commented Aug 18, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

aguspe and others added 2 commits August 18, 2026 10:08
* [rb] fix silent hang on oversized WebSocket frames

websocket-ruby drops frames larger than WebSocket.max_frame_size (20MB
default) and keeps returning nil, so the listener spun forever and the
process appeared to hang (e.g. large CDP data: URL payloads under
request interception).

Raise the limit to 100MB for our connections (lazily, and only when the
user has not already set a larger value, so non-DevTools users and
custom configs are unaffected), and surface an undecodable frame as a
logged error that stops the listener instead of hanging silently.

Fixes #17264

* address qodo comments

* address qodo re-review

- make close idempotent instead of short-circuiting after the listener
  initiated shutdown, and guard against self-join
- fail fast in send_cmd when the connection is closing instead of
  waiting for the full response timeout
- make the dropped-frame error log actionable and accurate for
  non-size decode errors
- tag WebSocketConnection as @api private and document why the frame
  size limit is process-global and not restored on close

* raise IOError from send_cmd fail-fast to keep closed-connection error class

---------

Co-authored-by: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Aug 18, 2026
@pull pull Bot added the ⤵️ pull label Aug 18, 2026
@pull
pull Bot merged commit e059591 into adamlaska:trunk Aug 18, 2026
3 of 9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants