Skip to content

Commit

Permalink
send correct buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Oct 27, 2024
1 parent 1c46a9a commit 5a38905
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/http/server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -516,7 +507,7 @@ pub fn Server(
send_task,
provision,
provision.socket,
provision.buffer,
plain_buffer,
);
},
}
Expand Down

0 comments on commit 5a38905

Please sign in to comment.