Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 0ed7a45

Browse files
committed
reproduce invalid free when requesting same srv twice
1 parent 209c4f4 commit 0ed7a45

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/tests.zig

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,19 @@ pub fn onRequestConnect(ctx: *Ctx, res: anyerror!void) anyerror!void {
3737
return ctx.req.async_send(ctx, onRequestSend);
3838
}
3939

40-
test "example.com" {
40+
test "PLAIN example.com" {
4141
var urls = [_][]const u8{
42+
"http://www.example.com",
43+
"http://www.example.com",
44+
"http://www.example.com",
45+
};
46+
try do(&urls);
47+
}
48+
49+
test "TLS example.com" {
50+
var urls = [_][]const u8{
51+
"https://www.example.com",
52+
"https://www.example.com",
4253
"https://www.example.com",
4354
};
4455
try do(&urls);

0 commit comments

Comments
 (0)