aboutsummaryrefslogtreecommitdiff
path: root/lib/std/http/Client.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-05 19:08:37 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:07 -0800
commitaafddc2ea13e40a8262d9378aeca2e097a37ac03 (patch)
tree46770e51147a635a43c2e7356e62064466b51c34 /lib/std/http/Client.zig
parenteab354b2f5d7242c036523394023e9824be7eca9 (diff)
downloadzig-aafddc2ea13e40a8262d9378aeca2e097a37ac03.tar.gz
zig-aafddc2ea13e40a8262d9378aeca2e097a37ac03.zip
update all occurrences of close() to close(io)
Diffstat (limited to 'lib/std/http/Client.zig')
-rw-r--r--lib/std/http/Client.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig
index 10ab23f476..7f8c9827ef 100644
--- a/lib/std/http/Client.zig
+++ b/lib/std/http/Client.zig
@@ -1473,6 +1473,8 @@ pub const ConnectUnixError = Allocator.Error || std.posix.SocketError || error{N
///
/// This function is threadsafe.
pub fn connectUnix(client: *Client, path: []const u8) ConnectUnixError!*Connection {
+ const io = client.io;
+
if (client.connection_pool.findConnection(.{
.host = path,
.port = 0,
@@ -1485,7 +1487,7 @@ pub fn connectUnix(client: *Client, path: []const u8) ConnectUnixError!*Connecti
conn.* = .{ .data = undefined };
const stream = try Io.net.connectUnixSocket(path);
- errdefer stream.close();
+ errdefer stream.close(io);
conn.data = .{
.stream = stream,