Skip to content

Commit

Permalink
[matter_yamltests] Increase the maximum message size that can be rece…
Browse files Browse the repository at this point in the history
…ived by the websocket (#27005)
  • Loading branch information
vivien-apple authored and pull[bot] committed Oct 18, 2023
1 parent b19f03e commit 1098186
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .runner import TestRunner

_KEEP_ALIVE_TIMEOUT_IN_SECONDS = 40
_MAX_MESSAGE_SIZE_IN_BYTES = 10485760 # 10 MB


@dataclass
Expand Down Expand Up @@ -67,7 +68,7 @@ async def _start_client(self, url, max_retries=4, interval_between_retries=1):
start = time.time()
try:
self._hooks.connecting(url)
connection = await websockets.connect(url, ping_timeout=_KEEP_ALIVE_TIMEOUT_IN_SECONDS)
connection = await websockets.connect(url, ping_timeout=_KEEP_ALIVE_TIMEOUT_IN_SECONDS, max_size=_MAX_MESSAGE_SIZE_IN_BYTES)
duration = round((time.time() - start) * 1000, 0)
self._hooks.success(duration)
return connection
Expand Down

0 comments on commit 1098186

Please sign in to comment.