Commit Graph

152 Commits

Author SHA1 Message Date
c199367149 test: Fix naming 2022-07-15 21:34:18 +02:00
a321cb9bf0 test: Fix kv test 2022-07-15 21:34:00 +02:00
4fdcb20cbd xmpp: Move Sasl code into the negotiators directory 2022-07-15 21:33:04 +02:00
71c442c06c xmpp: Migrate scram to the negotiator design 2022-07-15 21:09:33 +02:00
d3a70f5164 xmpp: Make SASL kinda work 2022-07-15 20:39:10 +02:00
aa2580a919 xmpp: Implement the basic negotiator system 2022-07-15 19:27:28 +02:00
f9a62468d8 xmpp: Fix reply() not including any children 2022-06-26 12:05:54 +02:00
0625f0596f style: Remove unused import 2022-06-05 20:27:04 +02:00
e64320a074 service: Remove state tracking from [MoxxyReconnectionPolicy]
Also... Use the policy...
2022-06-05 20:26:21 +02:00
0fc34649a7 xmpp: Fix _pendingAcks for multi-stanza acks
If we send 5 stanzas, we expect 5 acks. But if the server acks them all
at once, it won't work.
2022-06-05 17:19:20 +02:00
81e827dda0 feat: Implement a network-connection-aware reconnection
We don't need to do an exponential backoff when we know that
it won't work. So just idle until we are connected again.
2022-06-05 15:40:12 +02:00
aae126a3de xmpp: Add support for setting reconnection policies 2022-05-30 16:26:34 +02:00
fc69261029 refactor: Move implies into moxlib 2022-05-13 14:01:05 +02:00
169457c9c9 test: Adapt to changes in [XmppManagerAttributes] 2022-05-07 23:48:51 +02:00
491c7e066e test: Adapt to changed in moxdns 2022-05-07 23:46:21 +02:00
689e115559 meta: Use moxplatform for platform-specific tasks 2022-04-28 21:43:01 +02:00
a5be79b0d4 xmpp: Move the ping management out of [StreamManagementManager]
This allows the socket to say whether whitespace pings are allowed
and whether it manages its own keepalives or not.
2022-04-20 22:57:30 +02:00
e99e4ba540 test: Fix test naming 2022-04-20 20:52:51 +02:00
226e0bcba2 xmpp: Fix Issue with stream management (And null-operator on null)
As it turns out, there is a race-condition in sendStanza, if the
response is fast enough here. So the solution is to simply put
_awaitingResponse behind a mutex lock and turn code accessing it
into a critical section.
2022-04-20 18:33:12 +02:00
75fc24f79e xmpp: Redact sending of SASL nonzas 2022-04-18 17:12:22 +02:00
96a251ec87 xmpp: Add a test for XEP-0363 2022-04-18 13:23:25 +02:00
96009c9037 style: Make tests fit naming convention 2022-04-18 13:01:07 +02:00
e2ba266e64 style: Remove unused variable 2022-04-18 13:00:34 +02:00
9f4762b388 test: Finally fix the roster tests 2022-04-18 12:59:44 +02:00
cc7acae24c xmpp: Make JID parsing ignore whitespaces 2022-04-17 23:08:51 +02:00
112e23ba9a xmpp: Use the xml package for putting the data together 2022-04-17 11:01:32 +02:00
e79a46fd83 ui: Implement a LRU cache 2022-04-13 19:10:09 +02:00
a58cec32db xmpp: Allow disconnecting and detect socket closure 2022-04-12 18:13:58 +02:00
8556f61012 style: Fix a lot of linter warnings 2022-04-10 22:57:04 +02:00
ae545ce26d ui: Implement a basic chat state indicator 2022-04-10 12:30:20 +02:00
8a518a8aa1 xmpp: Improve Stream Management by looking at Conversations 2022-04-09 19:47:33 +02:00
9320500b32 test: Fix tests not compiling 2022-04-06 14:49:27 +02:00
75811d7dee service: Make [XmppState] and [PreferencesState] migratable 2022-04-06 14:46:08 +02:00
b08fe670bf service: Move the xmpp service over to an [EventHandler] 2022-03-27 12:09:12 +02:00
7fcaca6491 service: Implement the [EventHandler] 2022-03-22 13:27:47 +01:00
66d04f9346 shared: Add an event handler 2022-03-21 13:07:51 +01:00
aeb17c824d refactor: eventhandler -> awaitabledatasender 2022-03-21 12:42:24 +01:00
8993fa96fc ui: Add the AwaitableDataSender 2022-03-21 12:37:10 +01:00
ae643e7009 xmpp: Rework the stanza handler 2022-03-11 21:39:42 +01:00
0f872908eb service: Fix removing a roster item twice 2022-03-10 12:22:19 +01:00
e010d1321b xmpp: Validate XEP-0368 against the expected domain 2022-03-09 18:00:13 +01:00
5b0073af1f xmpp: Implement XEP-0198 resumption location 2022-03-09 11:02:19 +01:00
32cfb2a5b3 xmpp: Implement StartTLS 2022-03-08 21:50:21 +01:00
3664cb68ec xmpp: Improve the Stream Management implementation
Give each stanza, by default, 10 seconds to be acked. This helps
in handling bursts during which we sent a lot of stanzas and the
acks start trickling in, which causes a lot of stanzas to be
uselessly retransmitted.
2022-03-06 12:02:18 +01:00
7ea4ad62e2 xmpp: Implement XEP-0004 2022-03-04 23:03:56 +01:00
be701a5e0f xmpp: Begin writing a onBadCertificate function 2022-03-01 20:36:45 +01:00
91c5bfcf57 xmpp: Implement Message Carbons 2022-03-01 20:26:55 +01:00
430cb8ca24 xmpp: Possibly fix #4 2022-03-01 14:49:51 +01:00
c1b83b917d ui: Implement a stubbed download button 2022-02-28 12:39:40 +01:00
c77b457c21 service: Unify thumbnail handling for SFS and SIMS 2022-02-27 22:12:05 +01:00