From 5a38905030dd48ba5a51e70f2a48d497535534aa Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Sun, 27 Oct 2024 02:10:17 -0700 Subject: [PATCH] send correct buffer --- src/http/server.zig | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/http/server.zig b/src/http/server.zig index 7dc3cd5..d26c9fd 100644 --- a/src/http/server.zig +++ b/src/http/server.zig @@ -461,15 +461,6 @@ pub fn Server( pub fn trigger_task(rt: *Runtime, _: *const Task, provision: *Provision) !void { switch (provision.job) { else => unreachable, - .recv => { - try rt.net.recv( - *Provision, - recv_task, - provision, - provision.socket, - provision.buffer, - ); - }, .send => |*send_job| { const config = rt.storage.get_const_ptr("config", ServerConfig); const plain_buffer = send_job.slice.get(0, config.size_socket_buffer); @@ -516,7 +507,7 @@ pub fn Server( send_task, provision, provision.socket, - provision.buffer, + plain_buffer, ); }, }