Skip to content

Commit

Permalink
Increase websocket max size.
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Sep 10, 2024
1 parent 56b69c3 commit 9027137
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 9027137

Please sign in to comment.