From fc57c1d1a09f765c643c4ae68c3af2fe22d4089b Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 28 Jul 2019 11:20:39 +0100 Subject: [PATCH] [stream-refactor] repair preamble_size.py again --- preamble_size.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preamble_size.py b/preamble_size.py index b2cbd60a..692ad7b1 100644 --- a/preamble_size.py +++ b/preamble_size.py @@ -21,7 +21,7 @@ router = mitogen.master.Router() context = mitogen.parent.Context(router, 0) options = mitogen.ssh.Options(max_message_size=0, hostname='foo') conn = mitogen.ssh.Connection(options, router) -conn.context_id = 123 +conn.context = context print('SSH command size: %s' % (len(' '.join(conn.get_boot_command())),)) print('Preamble size: %s (%.2fKiB)' % (