Skip to content

Commit 96e812d

Browse files
committed
drain receive buffers after handshake
Don't expect anything there but for completeness.
1 parent 71518e9 commit 96e812d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/async.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn Server(comptime Handler: type) type {
6262
const buf = try handshake.responseAllocPrint(self.allocator, &accept, req.options);
6363
try self.handler.sendZc(buf);
6464
self.state = .open;
65-
return n;
65+
return n + try self.conn.recv(bytes[n..]);
6666
},
6767
.open => {
6868
return try self.conn.recv(bytes);

0 commit comments

Comments
 (0)