Handle Runtime.evaluate (no-op)

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-05-27 16:02:14 +02:00
parent bafdca3ffa
commit c57e50c5b9
2 changed files with 26 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ const Error = IOError || std.fmt.ParseIntError || cdp.Error || NoError;
// I/O Recv
// --------
const BufReadSize = 1024;
const BufReadSize = 1024; // 1KB
pub const Cmd = struct {
@@ -332,7 +332,7 @@ pub fn listen(browser: *Browser, socket: std.os.socket_t) anyerror!void {
const loop = browser.currentSession().loop;
// MsgBuffer
var msg_buf = try MsgBuffer.init(loop.alloc, BufReadSize);
var msg_buf = try MsgBuffer.init(loop.alloc, BufReadSize * 256); // 256KB
defer msg_buf.deinit(loop.alloc);
// create I/O contexts and callbacks