Commit Graph

85 Commits

Author SHA1 Message Date
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
Harry
dcef13c7ed
Use OWSProgress in Attachment Upload and Download Managers 2024-12-10 09:29:30 -08:00
Harry
1fd8d2ed6d
Sayonara, TSResource 2024-12-04 13:30:31 -08:00
Harry
2af0bb31dc
Remove TSResource/Stream/Pointer/Thumbnail, use v2 types directly instead 2024-12-04 13:29:06 -08:00
Harry
06f1e2ec9d
Delete TSAttachment managers and other intermediaries 2024-12-04 13:28:12 -08:00
Adam Sharp
f00c613f38 Mark actor properties nonisolated where it isn't inferred
Swift 6 began generating a warning that `await` is required when accessing
`let` properties on actors where the type is not `Sendable`. (If the type is
`Sendable`, they are automatically inferred to be `nonisolated`.)

This resolves that specific warning, but would generate different warnings
under strict concurrency checking or Swift 6 mode. The ultimate solution should
be to audit these types for sendability.
2024-11-15 19:10:46 -05:00
Max Radermacher
0d655f9e1a
Consolidate error handling for OWSURLSession 2024-11-04 15:49:11 -06:00
Max Radermacher
6d14b97ab6
Use new async OWSUrlSession methods 2024-11-04 15:29:53 -06:00
Pete Walters
3a63402138
Migrate to new Media/Message backup auth credentials 2024-11-01 15:46:58 -05:00
Pete Walters
655e7bd206
Add a "purpose" enum to MBAuthCredentialManager
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-11-01 15:39:11 -05:00
Harry
a8321c4f54
Omit IV from copyToMediaTier request 2024-10-31 09:37:01 -07:00
Harry
0949fbfc76
Hook up link'n'sync (dev only, without error handling) 2024-10-25 14:42:31 -07:00
Ehren Kret
9d24c6b111 add asyncRequest method to NetworkManager to deprecate Promises 2024-10-22 10:57:19 -05:00
Max Radermacher
b902790b93
Add & use global.messageQueueTime remote config 2024-10-18 15:07:10 -05:00
Max Radermacher
c0b31c02df
Asyncify uploadQueue 2024-10-18 13:28:19 -05:00
Ehren Kret
de32c7799d remove NSObject and Dependencies extension computed vars for SignalServiceKit 2024-10-11 23:12:59 -05:00
Harry
4e5e570421
Add necessary media tier list methods to AttachmentUploadStore 2024-10-07 07:56:36 -07:00
Harry
a760f35b6d
Split AttachmentStore and AttachmentUploadStore 2024-10-07 07:55:58 -07:00
Harry
ba2f10732e
Parametrize transaction type in DB v2 protocol 2024-10-04 16:12:52 -07:00
Ehren Kret
5ea36cd91b enable internal imports by default 2024-09-29 20:03:17 -05:00
Harry
4d87719397
Fix backup copy to media tier request 2024-09-25 19:12:48 -05:00
Harry
b94a5faece
Wipe transit tier info off attachment table if we know the upload is gone 2024-09-23 15:06:29 -07:00
Harry
011a321b2d
Clean up AttachmentUploadManager media tier upload method 2024-09-23 12:46:49 -07:00
Harry
29511cdf1a
Generate thumbnails for backup attachment uploads 2024-09-20 10:11:22 -07:00
Harry
70fc593581
Use correct upload form for backup media 2024-09-19 11:42:39 -05:00
Harry
2889d51077
Send correct encryption key when forwarding an attachment with rotated transit tier info 2024-09-18 09:33:16 -05:00
Harry
86ef1d52bc
Migration to split incrementalMac attachment columns to separate media and transit tier values 2024-09-09 16:52:02 -07:00
Pete Walters
7cb672c15a
Add media tier attachment uploads 2024-08-27 10:59:56 -05:00
Pete Walters
d134b222c7
Move around some code in prep for media tier uploads 2024-08-22 11:04:13 -05:00
Pete Walters
2bf340e858
Add persistent resumable upload support 2024-08-15 11:14:28 -05:00
Pete Walters
f22154db54
Add AttachmentUploadRecord 2024-08-15 10:50:41 -05:00
Pete Walters
731237981f
Move some v2 upload code 2024-07-26 09:39:45 -07:00
Max Radermacher
2344354d2b
Consolidate “download too large” code 2024-07-25 02:37:38 -05:00
Pete Walters
c5136aae64
Extract form request to an external method. 2024-07-19 09:08:40 -07:00
Pete Walters
9c735f5c49
Don't delete the persisted attachment file after v2 upload 2024-07-18 16:46:20 -07:00