Skip to content

Commit

Permalink
Ensure connection handover state is reset when reused
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Dec 17, 2024
1 parent 410b6a1 commit f4d2b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worker.zig
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ pub fn Blocking(comptime S: type, comptime WSH: type) type {
return;
};

conn.stream = .{ .handle = socket };
conn.address = address;
conn.handover = .unknown;
conn.stream = .{ .handle = socket };

var is_keepalive = false;
while (true) {
Expand Down

0 comments on commit f4d2b83

Please sign in to comment.