From f927701e74a3b6a22694a0d55e918febbeca9e98 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 30 Apr 2015 08:03:26 +1200 Subject: Websocket frame read limit. --- test/tutils.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'test/tutils.py') diff --git a/test/tutils.py b/test/tutils.py index 4c29f5b2..f8a37a5e 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -64,10 +64,21 @@ class DaemonTests(object): def get(self, spec): return requests.get(self.d.p(spec), verify=False) - def pathoc(self, spec, timeout=None, connect_to=None, ssl=None): + def pathoc( + self, + spec, + timeout=None, + connect_to=None, + ssl=None, + ws_read_limit=None + ): if ssl is None: ssl = self.ssl - c = pathoc.Pathoc(("localhost", self.d.port), ssl=ssl) + c = pathoc.Pathoc( + ("localhost", self.d.port), + ssl=ssl, + ws_read_limit=ws_read_limit + ) c.connect(connect_to) if timeout: c.settimeout(timeout) -- cgit v1.2.3