From a60a6a295d7ff0e5f1d939d71c9697071b94fb13 Mon Sep 17 00:00:00 2001 From: kakwa Date: Thu, 22 Dec 2016 03:13:34 +0100 Subject: [PATCH] add ssl line (commented) for stress script --- tests/stress.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/stress.py b/tests/stress.py index a28b1d0..25e397a 100755 --- a/tests/stress.py +++ b/tests/stress.py @@ -3,6 +3,7 @@ import httplib import time import os +import ssl tsq_path = os.path.join(os.path.dirname(__file__),'example.tsq') @@ -14,6 +15,7 @@ counter=0 old_time = time.time() while True: h1 = httplib.HTTPConnection('localhost:2020') + #h1 = httplib.HTTPSConnection('localhost:2020', context=ssl._create_unverified_context()) h1.request('POST', '/', body, {"Content-Type": "application/timestamp-query"}) response = h1.getresponse() h1.close()