diff --git a/server/configs/tls/tls-ed25519.conf b/server/configs/tls/tls-ed25519.conf index 2f10f7dd..dcb8fd94 100644 --- a/server/configs/tls/tls-ed25519.conf +++ b/server/configs/tls/tls-ed25519.conf @@ -1,6 +1,6 @@ # Simple TLS (ed25519) config file -listen: 127.0.0.1:4443 +listen: 127.0.0.1:-1 tls { cert_file: "./configs/certs/tls/benchmark-server-cert-ed25519.pem" diff --git a/server/configs/tls/tls-none.conf b/server/configs/tls/tls-none.conf index c6cae62d..042bf4e0 100644 --- a/server/configs/tls/tls-none.conf +++ b/server/configs/tls/tls-none.conf @@ -1,4 +1,4 @@ # Simple config file -listen: 127.0.0.1:4443 +listen: 127.0.0.1:-1 diff --git a/server/configs/tls/tls-rsa-1024.conf b/server/configs/tls/tls-rsa-1024.conf index a5032fda..fb3aaa41 100644 --- a/server/configs/tls/tls-rsa-1024.conf +++ b/server/configs/tls/tls-rsa-1024.conf @@ -1,6 +1,6 @@ # Simple TLS (rsa-1024) config file -listen: 127.0.0.1:4443 +listen: 127.0.0.1:-1 tls { cert_file: "./configs/certs/tls/benchmark-server-cert-rsa-1024.pem" diff --git a/server/configs/tls/tls-rsa-2048.conf b/server/configs/tls/tls-rsa-2048.conf index 9e33b7d8..08f54a25 100644 --- a/server/configs/tls/tls-rsa-2048.conf +++ b/server/configs/tls/tls-rsa-2048.conf @@ -1,6 +1,6 @@ # Simple TLS (rsa-2048) config file -listen: 127.0.0.1:4443 +listen: 127.0.0.1:-1 tls { cert_file: "./configs/certs/tls/benchmark-server-cert-rsa-2048.pem" diff --git a/server/configs/tls/tls-rsa-4096.conf b/server/configs/tls/tls-rsa-4096.conf index a64ede8f..68ad841b 100644 --- a/server/configs/tls/tls-rsa-4096.conf +++ b/server/configs/tls/tls-rsa-4096.conf @@ -1,6 +1,6 @@ # Simple TLS (rsa-4096) config file -listen: 127.0.0.1:4443 +listen: 127.0.0.1:-1 tls { cert_file: "./configs/certs/tls/benchmark-server-cert-rsa-4096.pem" diff --git a/server/core_benchmarks_test.go b/server/core_benchmarks_test.go index 560cd149..707d267b 100644 --- a/server/core_benchmarks_test.go +++ b/server/core_benchmarks_test.go @@ -54,9 +54,9 @@ func BenchmarkRequestReplyOverEncryptedConnection(b *testing.B) { // run server with tls scheme server, _ := RunServerWithConfig(schemeConfig) - opts := defaultOpts defer server.Shutdown() + opts := defaultOpts if keyType != "none" { opts = append(opts, nats.Secure(&tls.Config{ InsecureSkipVerify: true,