mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
reset read_pos after handshake is established
This commit is contained in:
@@ -555,6 +555,7 @@ fn AsyncHandler(comptime H: type, comptime L: type) type {
|
|||||||
if (self.is_receiving) {
|
if (self.is_receiving) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.is_receiving = true;
|
self.is_receiving = true;
|
||||||
return self.loop.recv(
|
return self.loop.recv(
|
||||||
Self,
|
Self,
|
||||||
@@ -736,6 +737,7 @@ fn AsyncHandler(comptime H: type, comptime L: type) type {
|
|||||||
} else if (tls_client.isConnected()) {
|
} else if (tls_client.isConnected()) {
|
||||||
// if we're done our handshake, there should be
|
// if we're done our handshake, there should be
|
||||||
// no unused data
|
// no unused data
|
||||||
|
handler.read_pos = 0;
|
||||||
std.debug.assert(used == data.len);
|
std.debug.assert(used == data.len);
|
||||||
try self.sendSecureHeader(secure);
|
try self.sendSecureHeader(secure);
|
||||||
return .wait;
|
return .wait;
|
||||||
|
|||||||
Reference in New Issue
Block a user