Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 27, 2024
1 parent 8740984 commit 41c6ae2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .builder/actions/tls_server_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")

0 comments on commit 41c6ae2

Please sign in to comment.