aboutsummaryrefslogtreecommitdiff
path: root/src/http_client_async.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-21 14:30:36 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-21 14:30:36 -0700
commitb6007a860e6e66aa794f664b699023c1f7e32cf3 (patch)
treef1dc047caa8ec0341fb95204c38ac382b43eeb64 /src/http_client_async.zig
parenteb3765ef93d73ef4d0f9e7b5b80336b640e1e28d (diff)
downloadbun-b6007a860e6e66aa794f664b699023c1f7e32cf3.tar.gz
bun-b6007a860e6e66aa794f664b699023c1f7e32cf3.tar.zst
bun-b6007a860e6e66aa794f664b699023c1f7e32cf3.zip
[internal] Add more debug logs for uws
Diffstat (limited to 'src/http_client_async.zig')
-rw-r--r--src/http_client_async.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig
index 370037db9..4e0926baa 100644
--- a/src/http_client_async.zig
+++ b/src/http_client_async.zig
@@ -254,7 +254,7 @@ fn NewHTTPContext(comptime ssl: bool) type {
/// Attempt to keep the socket alive by reusing it for another request.
/// If no space is available, close the socket.
pub fn releaseSocket(this: *@This(), socket: HTTPSocket, hostname: []const u8, port: u16) void {
- log("releaseSocket", .{});
+ log("releaseSocket(0x{})", .{bun.fmt.hexIntUpper(@ptrToInt(socket.socket))});
if (comptime Environment.allow_assert) {
std.debug.assert(!socket.isClosed());
@@ -275,7 +275,7 @@ fn NewHTTPContext(comptime ssl: bool) type {
pending.hostname_len = @truncate(u8, hostname.len);
pending.port = port;
- log("- Keep-Alive release {s}:{d}", .{ hostname, port });
+ log("Keep-Alive release {s}:{d} (0x{})", .{ hostname, port, @ptrToInt(socket.socket) });
return;
}
}