Add missing retryable error types

This commit is contained in:
Pete Walters 2026-02-17 14:49:40 -06:00 committed by GitHub
parent e074ba3d40
commit aeadb98cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,7 +246,7 @@ extension BackupImportSource {
libsignalNet: libsignalNet,
nonceStore: nonceStore,
)
case .connectionFailed, .connectionTimeoutError, .ioError:
case .connectionFailed, .connectionTimeoutError, .ioError, .webSocketError:
// Network-level failures mostly end up in these buckets;
// these can be retried automatically.
throw .retryableAutomatically
@ -437,7 +437,7 @@ extension BackupExportPurpose {
libsignalNet: libsignalNet,
nonceStore: nonceStore,
)
case .connectionFailed, .connectionTimeoutError, .ioError:
case .connectionFailed, .connectionTimeoutError, .ioError, .webSocketError:
// Network-level failures mostly end up in these buckets;
// these can be retried automatically.
throw .retryableAutomatically