Skip to content

Commit

Permalink
Ensure connection handover state is reset when reused
Browse files Browse the repository at this point in the history
karlseguin#84

For nonblocking
  • Loading branch information
karlseguin committed Dec 17, 2024
1 parent f4d2b83 commit 32c98e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/worker.zig
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ pub fn NonBlocking(comptime S: type, comptime WSH: type) type {
const http_conn = try self.http_conn_pool.acquire();
http_conn.request_count = 1;
http_conn._state = .request;
http_conn.handover = .unknown;
http_conn._io_mode = .nonblocking;
http_conn.address = address;
http_conn.socket_flags = socket_flags;
Expand Down

0 comments on commit 32c98e0

Please sign in to comment.