mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Maybe retry on TlsAlertCloseNotify error
This might not be specific to network notification, but the issue happens all the time testing scenarios that rely on network notification, so it's hard to ignore.
This commit is contained in:
@@ -895,6 +895,10 @@ fn AsyncHandler(comptime H: type, comptime L: type) type {
|
||||
}
|
||||
|
||||
const status = self.conn.received(self.read_buf[0 .. self.read_pos + n]) catch |err| {
|
||||
if (err == error.TlsAlertCloseNotify and self.state == .handshake and self.maybeRetryRequest()) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.handleError("data processing", err);
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user