Trying to deal with Travis CI problem

This commit is contained in:
Miroslav Stampar
2020-05-27 17:57:38 +02:00
parent a58d08c7e4
commit c97a814d26
3 changed files with 9 additions and 3 deletions

View File

@@ -86,9 +86,13 @@ def vulnTest():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.connect((address, port))
break
s.send(b"GET / HTTP/1.0\r\n\r\n")
if s.recv(4096):
break
except:
time.sleep(1)
finally:
s.close()
handle, config = tempfile.mkstemp(suffix=".conf")
os.close(handle)