Commit Graph

119 Commits

Author SHA1 Message Date
Harry
d7f561fdc2
Increase backup upload/download parallelism 2025-09-04 14:00:19 -07:00
Harry
0cb9320abe
Catch wrapped rate limit errors in BackupAttachmentUploadQueueRunner 2025-09-04 13:59:37 -07:00
Pete Walters
a9bf83dc08
Cache BackupServiceAuth 2025-08-29 15:36:30 -07:00
Sasha Weiss
8ee84d4a36
Consolidate Backup Settings progress bars 2025-08-28 11:45:33 -07:00
Harry
3f3ecbfc18
Reuse a single NSURLSession per cdn connection with the same configuration 2025-08-22 11:51:50 -07:00
Harry
3b5ecf110f
Rename Attachment.transitTierInfo->latestTransitTierInfo 2025-08-14 23:52:04 -07:00
Harry Sanabria
2c42101ab0 Fix byte count logging for attachment uploads with no passed-in progress 2025-08-08 15:52:26 -07:00
Harry
1a74c66877
Persist the transit tier info used for media tier upload 2025-08-08 12:10:39 -07:00
Harry
e057b99432
Add internal toggle to disable transit tier upload reuse 2025-08-08 09:12:24 -07:00
Harry
2a914da7b2
Safety check that uploads aren't deleting the primary attachment file 2025-08-07 14:34:51 -07:00
Harry
d6e43f5b3c
Don't crash when missing a file and uploading an attachment 2025-08-04 21:31:16 -07:00
Harry
67e3e4b8e0
Handle missing attachment files in backup uploads 2025-08-04 15:24:00 -07:00
Harry
b1fe641270
SVR🐝 2025-08-04 14:07:33 -07:00
Harry
2cf9fad59e
Fix transit tier upload reuse for media tier uploads 2025-08-04 12:38:22 -07:00
Max Radermacher
53f4db4f27
Throw a specific error when the app is expired 2025-07-29 09:33:00 -05:00
Pete Walters
417c80cded
Explicitly pass in backup keys to backup operations 2025-07-24 14:27:31 -05:00
Max Radermacher
74867f56dd
Split apart “is network failure” and “is timeout” 2025-07-22 15:38:36 -05:00
Harry
92e5cca0f1
Don't locally enforce a max backup upload size limit 2025-07-17 13:51:28 -07:00
Harry
a639acc90f
Don't reuse thumbnail attachment uploads as fullsize uploads and vice versa 2025-07-09 14:11:23 -07:00
Harry
ddf14da93b
Refetch attachments before updating them as uploaded to media tier 2025-07-07 16:28:10 -07:00
Harry
23a05fc28c
Media tier outer encryption quick fixes 2025-07-02 13:54:48 -07:00
Harry
cdb62d38ff
Clean up BackupArchiveAttachmentByteCounter 2025-06-26 16:52:19 -07:00
Harry Sanabria
5ba1743980 Include integrity check when re-encrypting attachment for upload 2025-06-18 10:55:48 -07:00
Harry
94e291ed16
Update to LibSignal v0.74.1 (Backup.LocatorInfo.integrityCheck)
Co-authored-by: Max Radermacher <max@signal.org>
2025-06-16 16:03:35 -07:00
Harry
1255e66119
Allow Attachment plaintextHash to be set even if not a stream 2025-06-16 15:13:08 -07:00
Harry
a8b5e3f85d
Use webP for backup thumbnails 2025-06-16 15:06:52 -07:00
Max Radermacher
b0c183f9f4
De-protocolize/clean up AppExpiry 2025-06-02 15:24:04 -05:00
Harry
3d81e6f18c
Backups x Attachments fixes grab bag 2025-05-22 21:44:09 -07:00
Harry
18853b89d0
Clean up + prepare some shouldOptimizeLocalStorage code 2025-05-20 16:58:18 -07:00
Sasha Weiss
7d6edb6412
Bulk rename MessageBackup types 2025-05-13 11:35:52 -07:00
Harry
cb4026f618
Add BackupAttachmentUploadProgress to drive upload progress bar UI 2025-05-13 09:56:16 -07:00
Harry
162fdbc722
Automatically enqueue new attachment streams for backup media tier upload 2025-05-12 22:11:09 -07:00
Max Radermacher
4dc6c9ff33
Update default value for maxAverageBackoff 2025-04-30 11:58:50 -05:00
Harry
03b57ae646
Make OWSProgress observer async 2025-04-21 10:18:27 -07:00
Max Radermacher
f15537472d
Use clampedNanoseconds where it’s useful 2025-04-08 15:30:36 -05:00
Max Radermacher
6b57c58989
Don’t throw assertions when the app is expired 2025-04-07 22:59:55 -05:00
Pete Walters
5c1eddd411
Fix upload backoff behavior for some specific error cases 2025-03-31 11:27:08 -05:00
Pete Walters
b167d00ef7
Update AttachmentUploadTests to cover both CDN2 and CDN3 2025-03-27 09:09:59 -05:00
Max Radermacher
f554de15e8
Clean up a few things with attachment errors 2025-03-25 16:18:14 -05:00
Sasha Weiss
1a5cbd9183
Rename postNotificationNameAsync to postOnMainThread 2025-03-21 15:28:35 -07:00
Max Radermacher
10cb6f69f7
Use HttpHeaders in more places 2025-03-21 13:53:38 -05:00
Sasha Weiss
bb048e8b59
One transaction type to rule them all and in the darkness bind them 2025-03-13 21:43:35 -07:00
Pete Walters
616cf42f93
Add some throughput logging to attachment upload. 2025-01-27 19:09:30 -06:00
Pete Walters
f4ad46f176
Clean up Upload error handling 2025-01-27 11:04:58 -06:00
Pete Walters
a47f7e387d
On unrecognized failures, check the remote endpoint for upload progress 2025-01-27 10:51:17 -06:00
Max Radermacher
6f02723dbb
Use the web socket where easily possible 2025-01-21 12:26:39 -06:00
Pete Walters
cc8c7107cc
Update URLSession timeout to 5 min for CDN requests 2024-12-20 16:05:05 -06:00
Pete Walters
24b66a3579
Reset the upload attempt count if progress was made in the prior attempt 2024-12-13 12:18:39 -06:00
Pete Walters
5b67c1e7dc
Add internal debug logging for uploads 2024-12-12 16:33:47 -06:00
Pete Walters
128d683a1b
Differentiate some upload logging based on error type 2024-12-12 14:32:59 -06:00