mirror of
https://github.com/kakwa/uts-server
synced 2025-01-10 05:34:29 +01:00
add ssl line (commented) for stress script
This commit is contained in:
parent
69998f94d1
commit
89246d9f43
@ -3,6 +3,7 @@
|
|||||||
import httplib
|
import httplib
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import ssl
|
||||||
|
|
||||||
tsq_path = os.path.join(os.path.dirname(__file__),'example.tsq')
|
tsq_path = os.path.join(os.path.dirname(__file__),'example.tsq')
|
||||||
|
|
||||||
@ -14,6 +15,7 @@ counter=0
|
|||||||
old_time = time.time()
|
old_time = time.time()
|
||||||
while True:
|
while True:
|
||||||
h1 = httplib.HTTPConnection('localhost:2020')
|
h1 = httplib.HTTPConnection('localhost:2020')
|
||||||
|
#h1 = httplib.HTTPSConnection('localhost:2020', context=ssl._create_unverified_context())
|
||||||
h1.request('POST', '/', body, {"Content-Type": "application/timestamp-query"})
|
h1.request('POST', '/', body, {"Content-Type": "application/timestamp-query"})
|
||||||
response = h1.getresponse()
|
response = h1.getresponse()
|
||||||
h1.close()
|
h1.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user