Skip to content

Commit 63a1ed4

Browse files
committed
specify tls and rollback unneded
1 parent c5d2d81 commit 63a1ed4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

scenarios/antiforgery.benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ scenarios:
3535
load:
3636
job: wrk
3737
variables:
38-
path: /generateToken
38+
path: /auth
3939

4040
antiforgery-noop:
4141
application:

scenarios/tls.benchmarks.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ scenarios:
5757
presetHeaders: connectionclose
5858
connections: 32
5959
serverScheme: https
60+
sslProtocols: tls12
6061

6162
mTls-handshakes-httpsys:
6263
application:
@@ -77,6 +78,7 @@ scenarios:
7778
serverScheme: https
7879
certPath: https://raw.githubusercontent.com/aspnet/Benchmarks/refs/heads/main/src/BenchmarksApps/TLS/HttpSys/testCert.pfx
7980
certPwd: testPassword
81+
sslProtocols: tls12
8082

8183
tls-renegotiation-httpsys:
8284
application:
@@ -95,6 +97,7 @@ scenarios:
9597
serverScheme: https
9698
certPath: https://raw.githubusercontent.com/aspnet/Benchmarks/refs/heads/main/src/BenchmarksApps/TLS/HttpSys/testCert.pfx
9799
certPwd: testPassword
100+
sslProtocols: tls12
98101

99102
# Kestrel
100103

@@ -108,6 +111,7 @@ scenarios:
108111
presetHeaders: connectionclose
109112
connections: 32
110113
serverScheme: https
114+
sslProtocols: tls12
111115

112116
mTls-handshakes-kestrel:
113117
application:
@@ -124,6 +128,7 @@ scenarios:
124128
serverScheme: https
125129
certPath: https://raw.githubusercontent.com/aspnet/Benchmarks/refs/heads/main/src/BenchmarksApps/TLS/Kestrel/testCert.pfx
126130
certPwd: testPassword
131+
sslProtocols: tls12
127132

128133
tls-renegotiation-kestrel:
129134
application:
@@ -140,4 +145,5 @@ scenarios:
140145
connections: 32
141146
serverScheme: https
142147
certPath: https://raw.githubusercontent.com/aspnet/Benchmarks/refs/heads/main/src/BenchmarksApps/TLS/Kestrel/testCert.pfx
143-
certPwd: testPassword
148+
certPwd: testPassword
149+
sslProtocols: tls12

src/BenchmarksApps/Antiforgery/Program.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
app.MapGet("/", () => Results.Ok("hello world!"));
1111
app.MapGet("/noOp", (HttpContext ctx, IAntiforgery antiforgery) => Results.Ok());
1212

13-
// GET https://localhost:55471/generateToken
14-
app.MapGet("/generateToken", (HttpContext ctx, IAntiforgery antiforgery) =>
15-
{
16-
var token = antiforgery.GetAndStoreTokens(ctx);
17-
return Results.Ok();
18-
});
19-
2013
// GET https://localhost:55471/auth
2114
app.MapGet("/auth", (HttpContext ctx, IAntiforgery antiforgery) =>
2215
{

0 commit comments

Comments
 (0)