From 41c6ae297b6433d7ac53b76a031b5bb7acf1d826 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Tue, 26 Nov 2024 16:17:35 -0800 Subject: [PATCH] debugging --- .builder/actions/tls_server_setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.builder/actions/tls_server_setup.py b/.builder/actions/tls_server_setup.py index 3bb1aaeda..deea3a9fa 100644 --- a/.builder/actions/tls_server_setup.py +++ b/.builder/actions/tls_server_setup.py @@ -49,8 +49,6 @@ def run(self, env): "-cert", "server.crt", "-CAfile", "server_chain.crt", "-alpn", "x-amzn-mqtt-ca", - # "-tls1_3", # Allow TLS 1.3 connections only - # "-verify", "1", # Verify client's certificate "-debug", "-state", ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) time.sleep(1) @@ -60,11 +58,11 @@ def run(self, env): @atexit.register def close_tls_server(): print("Terminating openssl TLS server") - p.poll() + p.terminate() print("=== stdout:") for c in iter(lambda: p.stdout.read(1), b""): sys.stdout.buffer.write(c) print("=== stderr:") for c in iter(lambda: p.stderr.read(1), b""): sys.stdout.buffer.write(c) - p.terminate() + print("=== now bye")