mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
add some debug lines to see if we can fix the github action
This commit is contained in:
@@ -561,6 +561,7 @@ fn serveHTTPS(address: std.net.Address) !void {
|
|||||||
_ = it.next() orelse unreachable; // method
|
_ = it.next() orelse unreachable; // method
|
||||||
const path = it.next() orelse unreachable;
|
const path = it.next() orelse unreachable;
|
||||||
|
|
||||||
|
std.debug.print("http server: {s} ", .{path});
|
||||||
var response: []const u8 = undefined;
|
var response: []const u8 = undefined;
|
||||||
if (std.mem.eql(u8, path, "/http_client/simple")) {
|
if (std.mem.eql(u8, path, "/http_client/simple")) {
|
||||||
response = "HTTP/1.1 200 \r\nContent-Length: 0\r\n\r\n";
|
response = "HTTP/1.1 200 \r\nContent-Length: 0\r\n\r\n";
|
||||||
@@ -580,10 +581,12 @@ fn serveHTTPS(address: std.net.Address) !void {
|
|||||||
var unsent = response;
|
var unsent = response;
|
||||||
while (unsent.len > 0) {
|
while (unsent.len > 0) {
|
||||||
const to_send = rand.intRangeAtMost(usize, 1, unsent.len);
|
const to_send = rand.intRangeAtMost(usize, 1, unsent.len);
|
||||||
|
std.debug.print(" {d} ", .{to_send});
|
||||||
const sent = try conn.write(unsent[0..to_send]);
|
const sent = try conn.write(unsent[0..to_send]);
|
||||||
unsent = unsent[sent..];
|
unsent = unsent[sent..];
|
||||||
std.time.sleep(std.time.ns_per_us * 5);
|
std.time.sleep(std.time.ns_per_us * 5);
|
||||||
}
|
}
|
||||||
|
std.debug.print("\n", .{});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user