Commit Graph

281 Commits

Author SHA1 Message Date
bbd4162488 xmpp: Fix switching xmlns and negotiator id 2022-07-18 19:58:03 +02:00
7be5ddb16f xmpp: Fix the connection state never getting set to connected 2022-07-18 19:54:36 +02:00
9d9b4bba96 xmpp: Add more logging in relation to pinging 2022-07-18 17:58:16 +02:00
686124dd6d service: Fix crash on connectivity change 2022-07-18 17:53:37 +02:00
c73c477c79 xmpp: Redact outgoing SASL data 2022-07-17 22:26:08 +02:00
9c7bc7fb1d style: Fix destroying socket 2022-07-17 22:02:58 +02:00
d01b46934f style: Add trailing commas 2022-07-17 22:02:20 +02:00
3b60b2acaa style: Fix warnings for JID 2022-07-17 21:50:42 +02:00
08d83d6b0a xmpp: Allow destroying the socket 2022-07-17 21:30:50 +02:00
dc8e8ff882 style: Migrate to very_good_analysis 2022-07-17 21:20:57 +02:00
294dce22d9 style: Move lib/xmpp over to very_good_analysis 2022-07-17 14:55:16 +02:00
6335d85d4c xmpp: Fix small issues 2022-07-17 11:51:47 +02:00
03ce942364 ui: Fix the GetFeaturesEvent 2022-07-17 11:48:59 +02:00
de468563fc xmpp: Perform disco sweep after negotiation 2022-07-17 11:28:40 +02:00
a37cf62f70 style: Fix accidental ';' 2022-07-16 21:44:26 +02:00
d7791b275d xmpp: Fix a weird timing issue with ack counting while logging 2022-07-16 21:37:48 +02:00
1cbb20f90c xmpp: Add test for negotiation behaviour 2022-07-16 21:21:34 +02:00
77bed4f848 xmpp: Refuse to do SASL on insecure connection 2022-07-16 19:44:50 +02:00
0ea12f3e56 xmpp: Implement a StartTLS negotiator 2022-07-16 19:40:19 +02:00
34f2b96b94 xmpp: Add a Stream Management negotiator 2022-07-16 19:27:01 +02:00
f116c93311 xmpp: Fix style issues 2022-07-16 18:46:19 +02:00
44c5a108ee test: Uncomment all xmpp_test tests 2022-07-16 18:42:45 +02:00
4b080104a2 xmpp: Fix test 2022-07-16 13:22:09 +02:00
0c1f4e7c6c xmpp: Fix resource binding 2022-07-16 13:09:35 +02:00
49b8e57ba5 xmpp: Reset negotiators when connecting 2022-07-15 22:10:23 +02:00
2aca85f802 xmpp: Migrate code to negotiators 2022-07-15 22:07:57 +02:00
b03489ed20 xmpp: Remove unused files 2022-07-15 21:44:04 +02:00
4fdcb20cbd xmpp: Move Sasl code into the negotiators directory 2022-07-15 21:33:04 +02:00
89dc2729bf xmpp: Give negotiators an Id 2022-07-15 21:30:20 +02:00
49c3324340 style: Fix linter warnings 2022-07-15 21:19:58 +02:00
bcac7125aa xmpp: Fix warning about missing cases 2022-07-15 21:12:12 +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
edad4c3657 xmpp: Get the negotiator skeleton 2022-07-14 22:38:07 +02:00
f9a62468d8 xmpp: Fix reply() not including any children 2022-06-26 12:05:54 +02:00
25be4bc177 xmpp: Fix awaited stanzas being bounced 2022-06-26 11:44:10 +02:00
0912cdf2b3 xmpp: Remove onBadCertificate code 2022-06-05 20:28:52 +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
dfacbca446 refactor: Make [SASLScramNegotiator] use a DFA 2022-05-13 14:10:01 +02:00
e89b360fed xmpp: Use the federated moxdns 2022-04-30 16:08:20 +02:00
15eaccb822 xmpp: Handle ack timeouts 2022-04-22 23:12:20 +02:00
9f0ad970de xmpp: Ignore cap hash broadcasts from clients on our account 2022-04-22 23:11:40 +02:00
79f2b582b2 xmpp: Make the XEP-0030 name attribute optional 2022-04-21 14:43:40 +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
cc8b822e3e xmpp: Hopefully reduce the amount of times the connection just dies 2022-04-20 22:23:53 +02:00
7e0d6194ce meta: Replace mutex with synchronized
It turnes out that [Mutex.protect] would sometimes just never
release the Mutex and thus deadlock the entire connection.
2022-04-20 20:52:07 +02:00
f9dc1346d7 xmpp: Do not bounce stanzas with a type of 'error' 2022-04-20 20:28:59 +02:00