Commit Graph

873 Commits

Author SHA1 Message Date
Matthew Chen
1e9528cd0e Expire REST session manager pool when enabling/disabling CC. 2021-09-20 17:48:43 -03:00
Matthew Chen
3c5de11bc1 Default HTTP headers. 2021-09-20 17:46:09 -03:00
Matthew Chen
53afc871a6 Disable native websocket. 2021-09-11 12:37:38 -03:00
Matthew Chen
e770c37f41 Enable native websocket. 2021-09-11 12:37:29 -03:00
Matthew Chen
61a00319d8 Disable native websocket. 2021-09-11 12:36:45 -03:00
Matthew Chen
dd257a1c58 Enable native websocket. 2021-09-11 12:36:26 -03:00
Matthew Chen
89f2d4573e Disable native websocket, refine logging. 2021-09-11 00:09:43 -03:00
Matthew Chen
c3cbb45eaf Add feature flag around holding websockets open until drained. 2021-09-10 23:14:48 -03:00
Matthew Chen
ee94988082 Elaborate logging around message processing and web sockets. 2021-09-10 21:06:35 -03:00
Matthew Chen
41fdd36fc8 Improve handling of native websocket errors. 2021-09-09 21:41:26 -03:00
Matthew Chen
73deb9f610 Improve handling of native websocket errors. 2021-09-09 19:10:11 -03:00
Matthew Chen
39f3b10fdb Honor query and fragment in websocket requests. 2021-09-09 17:55:17 -03:00
Matthew Chen
976fbace2e Whitelist sender key requests for websocket. 2021-09-09 16:04:50 -03:00
Matthew Chen
b6297694b9 Tweak deprecate REST. 2021-09-09 11:18:04 -07:00
Michelle Linington
371a1bdc51 Lint 2021-09-09 11:18:04 -07:00
Michelle Linington
40ae8177d8 Migrate sender key to NetworkManager 2021-09-09 11:18:04 -07:00
Nora Trapp
f3c185be5e Use native URLSession WebSockets on iOS 13+ 2021-09-09 11:08:47 -07:00
Matthew Chen
af654cb5ea Fix 'cycle websocket on timeout' behavior. 2021-09-09 14:47:28 -03:00
Matthew Chen
3ee0cb20fb Cycle websocket if a request times out. 2021-09-09 14:41:38 -03:00
Matthew Chen
a77e85e8dc Improve logging around websocket failures. 2021-09-09 14:41:38 -03:00
Matthew Chen
b3ca01c1c2 Rename WebSocketConnection. 2021-09-09 14:41:38 -03:00
Matthew Chen
1fa8fef610 Streamline websocket requests. 2021-09-09 14:41:38 -03:00
Nora Trapp
0ab3b63016 Log message send benchmarks in production 2021-09-08 21:41:13 -03:00
Matthew Chen
e5992ad07c Fix "drain queue date" book-keeping. 2021-09-08 14:59:41 -03:00
Matthew Chen
a1cddb7d18 Clean up ahead of PR. 2021-09-08 14:59:41 -03:00
Matthew Chen
c4dbb436e3 Clean up ahead of PR. 2021-09-08 14:59:41 -03:00
Matthew Chen
7fb925e936 Refine background keep alive behavior. 2021-09-08 14:59:41 -03:00
Matthew Chen
3a5f91fbe8 Refine background keep alive behavior. 2021-09-08 14:59:41 -03:00
Matthew Chen
f0e6c6e107 Refine background keep alive behavior. 2021-09-08 14:59:41 -03:00
Matthew Chen
417655de94 Refine background keep alive behavior. 2021-09-08 14:59:41 -03:00
Matthew Chen
c633a5a5f0 Add logic around background keep alive. 2021-09-08 14:59:41 -03:00
Matthew Chen
d8d176e6de Remove OWSWebSocket entirely off main thread. 2021-09-08 14:59:41 -03:00
Matthew Chen
8476e3662e Remove OWSWebSocket entirely off main thread. 2021-09-08 14:59:41 -03:00
Matthew Chen
e58e0680d7 Simplify web socket background state. 2021-09-08 14:59:41 -03:00
Matthew Chen
c8c352b055 Simplify web socket background state. 2021-09-08 14:59:41 -03:00
Matthew Chen
a3c1c27106 Simplify 'background keep alive' behavior in websocket. 2021-09-08 14:59:41 -03:00
Matthew Chen
954400551f Simplify web socket background state. 2021-09-08 14:59:41 -03:00
Matthew Chen
df68b28dbb Clean up ahead of PR. 2021-09-08 14:59:41 -03:00
Matthew Chen
12e5b2a3fa Port OWSWebSocket to Swift. 2021-09-08 14:59:41 -03:00
Michelle Linington
bfa7f42187 Fix typo breaking compilation 2021-09-07 15:54:41 -07:00
Michelle Linington
cb6a09dbad Fix crash where we recursively reacquire lock
The recent Promise changes have changed this behavior. Before, we could
assume that each promise closure was run in an independent context. Now,
with the perf improvements with `asyncIfNecessary`, the guarantee may
not always hold.

In this case, the lock acquired outside of the promise chain continues
to be held inside of the promise chain.
2021-09-07 15:54:41 -07:00
Matthew Chen
4e7fa0e069 Merge branch 'release/5.19.1' 2021-09-07 08:51:57 -03:00
Michelle Linington
0aadc2d0c1 Re-add the CC host to RESTNetworkManager 2021-09-07 08:32:17 -03:00
Michelle Linington
7e6e99074e PR Feedback 2021-09-03 16:11:19 -07:00
Michelle Linington
88309e7cc1 Fix various issues with TESTABLE_RELEASE
While running some perf tests on database queries, I was building
against TESTABLE_RELEASE to have things built with optimizations.

I saw some weird behavior:
- Share extension would crash
- No logs would be recorded

I went through and cleaned up some things that appeared incorrect with
how we handled TESTABLE_RELEASE
2021-09-03 16:11:19 -07:00
Matthew Chen
a1ae473e05 Add logging around missing notifications. 2021-09-03 17:19:59 -03:00
Nora Trapp
cd3460337d Address rebase conflicts 2021-09-03 11:48:06 -07:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
2b502ad609 Elaborate logging around missing notifications. 2021-09-02 22:51:26 -03:00
Matthew Chen
39a47dea11 Add logging around websocket lifecycle. 2021-08-30 21:26:49 -03:00