Commit Graph

34 Commits

Author SHA1 Message Date
Martin Dosch
9aea1e294a
Improve listening mode. 2024-04-12 12:57:08 +02:00
Martin Dosch
c87f1bdb83
Move stanza receiving goroutine outside of for loop. 2024-04-12 10:52:31 +02:00
Martin Dosch
25b8a8e243
Reintroduce context and cancel func
There are still some rare races without.
2024-04-11 10:18:39 +02:00
Martin Dosch
c392eeb858
Close receiving of stanzas if io.EOF is received. 2024-04-02 17:05:24 +02:00
Martin Dosch
99689ea2cd
Ignore EOF errors when receiving stanzas. 2024-04-02 15:57:48 +02:00
Martin Dosch
11a31d6ad0
Remove mutex and context.
Those should hopefully no longer be necessary as the races
have been fixed in the library.
2024-04-02 15:36:33 +02:00
Martin Dosch
dbed11323d
Remove mutex as the locking is now done in the library. 2024-04-02 13:44:59 +02:00
Martin Dosch
4483863795
Lock mutex before starting the goroutine. 2024-04-01 16:45:08 +02:00
Martin Dosch
09693ba1bf
Further improvements to make race conditions less likely. 2024-03-31 16:55:45 +02:00
Martin Dosch
5704798b09
Improve stanza reading. 2024-03-31 16:05:37 +02:00
Martin Dosch
54fb96431e
Remove mutex as it might block go-sendxmpp forever. 2024-03-16 19:12:59 +01:00
Martin Dosch
c0493f3cdd
Remove unnecessary passing around of mutex
…it's a global variable anyway…
2024-03-14 21:19:54 +01:00
Martin Dosch
613a9c8639
Improve closing connection. 2024-03-14 20:52:54 +01:00
Martin Dosch
a3cd1fe0a9
Don't block on unanswered IQs. 2024-02-27 20:54:09 +01:00
Martin Dosch
6b2c78d2c2
Stanzahandling: Check if xmlns is set. 2024-02-25 18:34:33 +01:00
Martin Dosch
d74b86c30c
Properly handle lost connection. 2024-02-20 18:21:51 +01:00
Martin Dosch
fc1342ab29
Update go modules. 2024-01-10 16:21:39 +01:00
Martin Dosch
802f57d404
[gofumpt]: Improve formatting. 2023-11-25 19:52:55 +01:00
Martin Dosch
d482347310
Switch back to upstream go-xmpp library. 2023-11-11 14:30:23 +01:00
Martin Dosch
7dbbcf45e7
Add support for SCRAM PLUS variants and mechanism pinning. 2023-11-02 21:29:07 +01:00
Martin Dosch
a034a8e501
Temporarily switch to go-xmpp fork. 2023-11-02 21:05:16 +01:00
Martin Dosch
268953a445 Reply to XEP-0092 software version requests. 2023-10-29 10:20:44 +01:00
Martin Dosch
b004015e18
Don't unwrap errors when checking errors. 2023-08-16 08:49:43 +02:00
Martin Dosch
1e39ba0cb0
Remove unnecessary newline. 2023-08-14 10:18:39 +02:00
Martin Dosch
52564a5b48
Suppress warning about reading from closed channel on shutdown. 2023-08-14 09:34:39 +02:00
Martin Dosch
aad725b721
Unbreak function heads. 2023-06-07 22:33:43 +02:00
Martin Dosch
a912408d16
Wrap and unwrap errors. 2023-06-07 22:28:01 +02:00
Martin Dosch
620130aded
gofumpt 2023-06-06 10:47:40 +02:00
Martin Dosch
a86970a796
[golangci-lint]: Remove unused client. 2023-06-04 16:18:02 +02:00
Martin Dosch
d85cf8fee7
[golangci-lint]: Use constant for error. 2023-06-04 15:55:31 +02:00
Martin Dosch
437cd7eec6
Remove copyright years. 2023-05-11 20:06:23 +02:00
Martin Dosch
e381942708
Use single quotes for stanzas created by beevik/etree.
Squashed commit of the following:

commit 8e33952869831f620fa289f1bc997128a40eaee3
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 9 21:22:40 2023 +0200

    Clean go.mod

commit 11bb88fca2d4bb76557e912f46f726e675e0b0cb
Merge: 8d45413 b01ed4b
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 9 21:21:48 2023 +0200

    Merge branch 'master' into singlequotes

commit 8d45413f05
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 09:39:54 2023 +0200

    Add more singlequotes. :)

commit c496e2596a
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 09:35:12 2023 +0200

    Use single quotes.

commit e4556759d8
Author: Martin Dosch <martin@mdosch.de>
Date:   Tue May 2 07:25:09 2023 +0200

    Use single quotes for XML attributes.
2023-05-09 21:23:29 +02:00
Martin Dosch
cb033bbf59
Improve error handling in XML parsing. 2022-09-02 11:05:42 +02:00
Martin Dosch
f0a4bcf10c Reply to IQs. 2022-07-26 22:28:04 +02:00