Changeset: f3c6d48acaca for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/f3c6d48acaca Modified Files: clients/mapilib/Tests/tlssecurity.py testing/Mtest.py.in Branch: default Log Message:
In test tlssecurity: access tlstester on 127.0.0.1 instead of localhost Still debugging Windows slowness. If the delay is in host resolution, it should disappear now. If it's because the Python TCPServer code is trying to do a reverse lookup, the delay will remain. If it's something else, all bets are still off. diffs (31 lines): diff --git a/clients/mapilib/Tests/tlssecurity.py b/clients/mapilib/Tests/tlssecurity.py --- a/clients/mapilib/Tests/tlssecurity.py +++ b/clients/mapilib/Tests/tlssecurity.py @@ -34,13 +34,13 @@ assert os.path.isdir(tgtdir) scratchdir = os.path.join(tgtdir, "scratch") logging.debug(f"scratchdir={scratchdir}") -tlstester = TLSTesterClient(scratchdir) +tlstester = TLSTesterClient(scratchdir, host='127.0.0.1') def certpath(name): return tlstester.download(name) -def attempt(experiment: str, portname: str, expected_error_regex: str, tls=True, host='localhost', **params): +def attempt(experiment: str, portname: str, expected_error_regex: str, tls=True, host='127.0.0.1', **params): port = tlstester.get_port(portname) scheme = 'monetdbs' if tls else 'monetdb' url = f"{scheme}://{host}:{port}/demo" diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in --- a/testing/Mtest.py.in +++ b/testing/Mtest.py.in @@ -3299,7 +3299,7 @@ def StartTlsTester(): # Start a dummy server that only returns errors. return DummyTlsTester() from MonetDBtesting import tlstester - hostnames = ['localhost'] + hostnames = ['localhost', '127.0.0.1'] # make certificates also valid for 127.0.0.1 certs = tlstester.Certs(hostnames) server = tlstester.TLSTester( certs = certs, _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org