conn reset

This commit is contained in:
Fang-Pen Lin
2025-12-01 17:34:34 -08:00
parent 2fec9c3ee6
commit 3cb3bd3d21

View File

@@ -129,6 +129,9 @@ export const pkiAcmeChallengeServiceFactory = ({
if (errorCode === "ENOTFOUND" || errorMessage.includes("ENOTFOUND")) {
throw new AcmeDnsFailureError({ message: "Hostname could not be resolved (DNS failure)" });
}
if (errorCode === "ECONNRESET" || errorMessage.includes("ECONNRESET")) {
throw new AcmeConnectionError({ message: "Connection reset by peer" });
}
if (errorCode === "ECONNABORTED" || errorMessage.includes("timeout")) {
logger.error(exp, "Connection timed out while validating ACME challenge response");
throw new AcmeConnectionError({ message: "Connection timed out" });