This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push: new fd84da8 microserver error handling: SSLError check and debug. (#6884) fd84da8 is described below commit fd84da8ea68df356069a46fdb2eb99aa6bc5923b Author: Brian Neradt <brian.ner...@gmail.com> AuthorDate: Fri Jun 12 11:55:50 2020 -0500 microserver error handling: SSLError check and debug. (#6884) Co-authored-by: bneradt <bner...@verizonmedia.com> (cherry picked from commit e219cfcf33f01d7a3ef734670b8e3fbf20f374df) --- tests/gold_tests/autest-site/microserver.test.ext | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/gold_tests/autest-site/microserver.test.ext b/tests/gold_tests/autest-site/microserver.test.ext index bde0005..b579136 100644 --- a/tests/gold_tests/autest-site/microserver.test.ext +++ b/tests/gold_tests/autest-site/microserver.test.ext @@ -21,6 +21,7 @@ import socket import ssl from autest.api import AddWhenFunction +import hosts.output as host from ports import get_port import trlib.ipconstants as IPConstants @@ -125,6 +126,16 @@ def uServerUpAndRunning(serverHost, port, isSsl, isIPv6, request, clientcert='', try: sock.connect((serverHost, port)) except ConnectionRefusedError: + host.WriteDebug( + ['uServerUpAndRunning', 'when'], + "Connection refused: {0}:{1}".format( + serverHost, port)) + return False + except ssl.SSLError: + host.WriteDebug( + ['uServerUpAndRunning', 'when'], + "SSL connection error: {0}:{1}".format( + serverHost, port)) return False sock.sendall(request.encode())