From 000c8d1f471320dfee050159cb503f74163e9d71 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 8 Nov 2018 17:12:16 +0100 Subject: devtools: Disable websocket pings to Chrome Chrome does not like that. --- crocoite/devtools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crocoite/devtools.py') diff --git a/crocoite/devtools.py b/crocoite/devtools.py index d62a8a1..6e97ca3 100644 --- a/crocoite/devtools.py +++ b/crocoite/devtools.py @@ -245,8 +245,9 @@ class Tab: # increase size limit of a single frame to something ridiciously high, # so we can safely grab screenshots maxSize = 100*1024*1024 # 100 MB + # chrome does not like pings and kills the connection, disable them ws = await websockets.connect(kwargs['webSocketDebuggerUrl'], - max_size=maxSize) + max_size=maxSize, ping_interval=None) ret = cls (kwargs['id'], ws) await ret.run () return ret -- cgit v1.2.3