Skip to content

Commit

Permalink
fix close not interrupting readv
Browse files Browse the repository at this point in the history
  • Loading branch information
clickingbuttons committed Mar 21, 2024
1 parent 402cc38 commit d55bc15
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/std/http/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ test "general client/server API coverage" {
req.response.parser.done = true;
req.connection.?.closing = false;
requests[i] = req;

if (i == total_connections - 1) global.handle_new_requests = false;
}

for (0..total_connections) |i| {
Expand All @@ -867,13 +869,6 @@ test "general client/server API coverage" {
}

client.deinit();

{
global.handle_new_requests = false;

const conn = try std.net.tcpConnectToAddress(test_server.net_server.listen_address);
conn.close();
}
}

test "Server streams both reading and writing" {
Expand Down

0 comments on commit d55bc15

Please sign in to comment.