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:
Karl Seguin
2025-05-21 19:10:24 +08:00
parent 94a30b2167
commit f59e3cd4da

View File

@@ -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;
};