You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2020/06/12 16:56:01 UTC

[trafficserver] branch master updated: microserver error handling: SSLError check and debug. (#6884)

This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e219cfc  microserver error handling: SSLError check and debug. (#6884)
e219cfc is described below

commit e219cfcf33f01d7a3ef734670b8e3fbf20f374df
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Fri Jun 12 11:55:50 2020 -0500

    microserver error handling: SSLError check and debug. (#6884)
    
    Co-authored-by: bneradt <bn...@verizonmedia.com>
---
 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 decbf2c..94c8294 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
@@ -132,6 +133,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())