Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase websocket max size #48072

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/webdriver/webdriver/bidi/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def __init__(self, url: str,
self.read_message_task: Optional[asyncio.Task[Any]] = None

async def start(self) -> None:
self.connection = await websockets.connect(self.url) # type: ignore
# Default max_size of 1048576 bytes is too small for some messages.
# 128MB should be enough.
self.connection = await websockets.connect(self.url, max_size=128 * 1024 * 1024) # type: ignore
self.read_message_task = self.loop.create_task(self.read_messages())

for msg in self.send_buf:
Expand Down